From: Gordon Thiesfeld Date: 2009-08-06T05:13:02+09:00 Subject: Re: Change console forground to Red or Green On Wed, Aug 5, 2009 at 1:25 PM, Laup-Dawg wrote: > Hi All, > > I'm looking for a way to change a Window's console foreground color in > Ruby.  I have a script that outputs passes and fails and I would like > to know how to change the text to green or red specfically. > > I don't even mind hard coding the console color code values (escape > sequences), since those are the only two colors I'm planning on using. > > Any help would be appreciated... > Windows cmd.exe doesn't support ANSI escape sequences out of the box. But the win32console gem will do the trick. gem in win32console