[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How to colorize text in windows console?

Marcin Tyman

7/13/2007 7:57:00 AM

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-....

3 Answers

Robert Klemme

7/13/2007 8:07:00 AM

0

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.

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

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

Kind regards

robert

Patrick Hurley

7/13/2007 11:09:00 AM

0

> 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/win...

or

http://www.jpsoft.com/...

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

Good luck
pth

James Gray

7/13/2007 2:31:00 PM

0

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.
>
> http://www.google.com/search?q=ansi+c...
>
> There might even be a gem or a project in the http:/...
> lang.org/

HighLine can do it:

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

James Edward Gray II