From: "Flores, Ricardo" Date: 2011-10-05T06:39:08+09:00 Subject: Re: How to write a text in red color I prefer to use the rainbow gem. -----Original Message----- From: Joe Collins [mailto:joec_49@hotmail.com] Sent: Tuesday, October 04, 2011 2:29 PM To: ruby-talk ML 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/. IMPORTANT NOTICE: This e-mail message is intended to be received only by persons entitled to receive the confidential information it may contain. E-mail messages sent from this company may contain information that is confidential and may be legally privileged. Please do not read, copy, forward or store this message unless you are an intended recipient of it. If you received this transmission in error, please notify the sender by reply e-mail and delete the message and any attachments.