Though it's not gemified, it does work for very simple strings (one control code), and only for Kernel#print. Overriding Kernel#puts would be very similar.
What I could really use help on is parsing the ANSI control codes, for more complex strings (like setting both foreground and background). Sadly, my Regex-fu is not very strong. -- Will Green http://willgreen.mp/ On Thu, Jul 9, 2009 at 1:08 PM, Ivan Porto Carrero <[email protected]>wrote: > This may help, I got the people mixed up it was Will Green who has been > working on it: > http://github.com/hotgazpacho/iron-term-ansicolor/ > I guess you'd have to fork it and make it more stable if necessary. > > > > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > On Thu, Jul 9, 2009 at 6:03 PM, Mohammad Azam <[email protected]>wrote: > >> Hi, >> >> I am trying to color my spec results when running specification unit >> tests. I am using the following: >> >> C:> spec test_prime.rb --format nested --color >> >> But it tells me to install gem "win32console". So, I installed the gem >> using: >> >> C:> igem install win32console >> >> But still it gives me the same message that I need to install >> win32console gem. >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Ironruby-core mailing list >> [email protected] >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > > _______________________________________________ > Ironruby-core mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/ironruby-core > >
_______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
