How to colorize text in windows console?

Hi,
Is any way to highlight text in windows cmd? I have a script which
throws its output on cmd and it would be convenient to me if the text
will be colorized.

···

--
Posted via http://www.ruby-forum.com/.

http://www.google.com/search?q=ansi+color+codes

There might even be a gem or a project in the http://raa.ruby-lang.org/

Kind regards

robert

···

2007/7/13, Marcin Tyman <m.tyman@interia.pl>:

Hi,
Is any way to highlight text in windows cmd? I have a script which
throws its output on cmd and it would be convenient to me if the text
will be colorized.

Two real choices:

http://rubyforge.org/projects/win32console/

or

http://www.jpsoft.com/4ntdes.htm

Both of which will fix the problem (from two completely different directions).

Good luck
pth

···

2007/7/13, Marcin Tyman <m.tyman@interia.pl>:
> Hi,
> Is any way to highlight text in windows cmd? I have a script which
> throws its output on cmd and it would be convenient to me if the text
> will be colorized.

HighLine can do it:

http://viewvc.rubyforge.mmmultiworks.com/cgi/viewvc.cgi/trunk/highline/examples/ansi_colors.rb?revision=116&root=highline&view=markup

James Edward Gray II

···

On Jul 13, 2007, at 3:07 AM, Robert Klemme wrote:

2007/7/13, Marcin Tyman <m.tyman@interia.pl>:

Hi,
Is any way to highlight text in windows cmd? I have a script which
throws its output on cmd and it would be convenient to me if the text
will be colorized.

ansi color codes - Google Search

There might even be a gem or a project in the http://raa.ruby-lang.org/