Color in p and puts method!
Colorputs provides a beatiful color printing for Ruby console-based applications
gem install colorputs
p 'Hello world!', :red
Will print out "Hello world!" colored in red.
Symbol | Color/Mode |
---|---|
:red | Red |
:blue | Blue |
:green | Green |
:yellow | Yellow |
:cyan | Cyan |
:magenta | Magenta |
:white | White |
:black | Black |
:rainbow | Rainbow colors! |