Method: Meshchat::Ui::Display::ReadlineDisplay#chat
- Defined in:
- lib/meshchat/ui/display/readline_display.rb
#chat(msg) ⇒ Object
72 73 74 75 76 77 78 79 |
# File 'lib/meshchat/ui/display/readline_display.rb', line 72 def chat(msg) (msg) do |time, name, , _| colored_time = (time.to_s + ' ').colorize(:light_magenta) colored_name = (name + ' ').colorize(:cyan) print_non_destructively(colored_time + colored_name + ) end end |