Module: Aidp::MessageDisplay::ClassMethods
- Included in:
- CLI
- Defined in:
- lib/aidp/message_display.rb
Instance Method Summary collapse
-
#display_message(message, type: :info) ⇒ Object
Class-level display helper (uses fresh prompt to respect $stdout changes).
Instance Method Details
#display_message(message, type: :info) ⇒ Object
Class-level display helper (uses fresh prompt to respect $stdout changes)
47 48 49 50 51 52 53 |
# File 'lib/aidp/message_display.rb', line 47 def (, type: :info) # Ensure message is UTF-8 encoded to handle emoji and special characters = .to_s = .force_encoding("UTF-8") if .encoding.name == "ASCII-8BIT" = .encode("UTF-8", invalid: :replace, undef: :replace) .say(, color: COLOR_MAP.fetch(type, :white)) end |