[cucumber, jruby, windows] - What are you cucumber windows users using for ANSII color in your conso

Not really a cucumber question, but I’m not seeing ansi colors on a
Windows
XP consoles.
Some googling around says that windows consoles don’t support ansii
color
codes. If this is the
case, what are you windows cucumber folks using?

thanks,

Not really a cucumber question, but I’m not seeing ansi colors on a Windows
XP consoles.
Some googling around says that windows consoles don’t support ansii color
codes. If this is the
case, what are you windows cucumber folks using?

MRI or JRuby? RSpec or Cucumber? What versions?
(I’m assuming JRuby 1.2.0+Cucumber 0.3.0, but I need to be sure)

You need the term-ansicolor gem. In addition to that you need:

  • For MRI the Win32Console gem
  • For JRuby the aslakhellesoy-ansicolor gem

The latter is a gem that contains a jar, that contains a dll that
contains
some calls to the Win32 API for console colours. Funkiest code I ever
wrote:

Also see:
https://rspec.lighthouseapp.com/projects/16211/tickets/166-colors-and-jruby
http://wiki.github.com/aslakhellesoy/cucumber/console-colours

Aslak

First … get the win32console gem. Also you want to at least change
the character set for the particular window using the command:
chcp 1252

It works fine for me …

Cheers


Brian Colfer


From: [email protected]
[mailto:[email protected]] On Behalf Of John G.
Sent: Tuesday, April 21, 2009 8:42 AM
To: rspec-users
Subject: [rspec-users] [cucumber, jruby,windows] - What are you cucumber
windows users using for ANSIIcolor in your consoles?

Not really a cucumber question, but I’m not seeing ansi colors on a
Windows XP consoles.
Some googling around says that windows consoles don’t support ansii
color codes. If this is the
case, what are you windows cucumber folks using?

thanks,