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/.
win32console needs to be implemented for .NET it uses some C stuff. I believe Nick Ricketts has done some work in that area so maybe he''s listening and can point you in the right direction. --- 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 <lists at ruby-forum.com> 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 > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090709/10618cf0/attachment.html>
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 <lists at ruby-forum.com> 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 > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090709/f0fbed6c/attachment.html>
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 <ivan at flanders.co.nz>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 <lists at ruby-forum.com>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 >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090711/9fea2a3f/attachment.html>