From: Joe Collins Date: 2011-10-05T06:28:35+09:00 Subject: Re: How to write a text in red color try this on ruby under msdos under windows xp - it works fine require 'rubygems' require 'Win32console' matchknt=1 mismatchknt=3 puts "#{matchknt} \e[32mmatch\e[0m and #{mismatchknt} \e[31mmismatch\e[0m" Reference http://kpumuk.info/ruby-on-rails/colorizing-console-ruby-script-output/ Hope that helps Joe -- Posted via http://www.ruby-forum.com/.