hi is there a ruby modul for colorize strings in a linux terminal?
+1
A:
I prefer the Rainbow gem since it also supports Windows if win32console gem has been installed.
You can use it like this:
puts "some " + "red".color(:red) + " and " + "blue on yellow".color(:blue).background(:yellow)
Andy
2010-08-30 06:29:14