Method: String#console_red
- Defined in:
- lib/fat_core/string.rb
permalink #console_red ⇒ Object
Thanks to Eugene at stackoverflow for the following. stackoverflow.com/questions/8806643/
colorized-output-breaks-linewrapping-with-readline
These color strings without confusing readline about the length of the prompt string in the shell. (Unlike the rainbow routines)
184 |
# File 'lib/fat_core/string.rb', line 184 def console_red; colorize(self, "\001\e[1m\e[31m\002"); end |