From: Phillip Gawlowski Date: 2011-09-30T22:10:52+09:00 Subject: Re: How to write a text in red color On Fri, Sep 30, 2011 at 1:25 PM, Sat nosur wrote: > Hi All, > > I am directing my script output to the file by executing the script > through DOS prompt like test.rb > results.txt. My question is how do I > write test case failed puts statement in red color? is there any > WATIR/ruby method available? Try searching: PS C:\> gem search -r color If you want to output ANSI escape sequences and get color output, use https://github.com/adoxa/ansicon (Ruby gems that you installed might implicitly assume ANSI escape sequences). -- Phillip Gawlowski gplus.to/phgaw | twitter.com/phgaw A method of solution is perfect if we can forsee from the start, and even prove, that following that method we shall attain our aim.               -- Leibniz