From: ben baka Date: 2008-02-06T19:14:33+09:00 Subject: Re: Is there an easy way to color/control console output? ------=_Part_14750_7093625.1202292873399 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline See: http://benjaminbaka.wordpress.com/2008/02/06/console-output-with-color-using-ruby/ On Feb 6, 2008 12:54 AM, Reacher wrote: > On Feb 5, 7:13 pm, Andy wrote: > > Hello everyone, is there an easy way for me to color my console > > output? What about updating just a particular x/y coordinate? I > > don't have time to learn Tk right now for a graphical GUI but just > > being able to control the color and locations of what I print out > > would be so nice. I am on windows right now but I would like the code > > to be cross platform if it as all possible. Anyone here have any > > suggestions for something light weight? > > > > -- > > -Andy > > "I have a great faith in fools; self-confidence my friends call it." - > > Edgar Allen Poe > > Take a look at ncurses. I've never used the ruby extension for it, > but it's a fairly easy way to manipulate the console. There is color > support. Also, Coderay (http://coderay.rubychan.de/) is a gem that > colorizes text based on coding language. > > -- --Ben Baka Blog : http://benjaminbaka.wordpress.com/ ------=_Part_14750_7093625.1202292873399--