How would I go about doing this in ruby

Quick question, I have asked some other programmers, they were not
sure… my friend who knows c had said cout.SetColor(‘color’); although,
ruby is not c, but I take its something simular… so if anyone, can help
me, this is an example, of what I want to be able to do.

http://img217.imageshack.us/img217/5291/adsfwz0.jpg

thats a link to the image, and basically I wanna control the fonts
color, and the bg color of it…

Kyle Pinkman wrote:

Quick question, I have asked some other programmers, they were not
sure… my friend who knows c had said cout.SetColor(‘color’); although,
ruby is not c, but I take its something simular… so if anyone, can help
me, this is an example, of what I want to be able to do.

http://img217.imageshack.us/img217/5291/adsfwz0.jpg

thats a link to the image, and basically I wanna control the fonts
color, and the bg color of it…

This just involves outputting the color codes for the console. You can
do this by hand, or use one of the libraries available:

http://rubyforge.org/projects/term-ansicolor/
http://rubyforge.org/projects/highline/

Hope that helps.

-Justin

Kyle Pinkman wrote:

Quick question, I have asked some other programmers, they were not
sure… my friend who knows c had said cout.SetColor(‘color’); although,
ruby is not c, but I take its something simular… so if anyone, can help
me, this is an example, of what I want to be able to do.

http://img217.imageshack.us/img217/5291/adsfwz0.jpg

thats a link to the image, and basically I wanna control the fonts
color, and the bg color of it…

If you need to implement this for Windows, as that screenshot suggests,
you might get a quick return from win32console -

Z:>gem list -r win32console

*** REMOTE GEMS ***

win32console (1.0.8)
A library giving the Win32 console ANSI escape sequence support.

deejay