Ditch Win32Console for wac?

29 views
Skip to first unread message

aslak hellesoy

unread,
Oct 12, 2009, 7:39:57 PM10/12/09
to cu...@googlegroups.com
Windows users who want cucumber colours have to install the
win32console gem. This is a gem with some native C code that enables
coulours (since Windows doesn't grok ANSI colours).
It turns out this gem is broken on ruby 1.9.1, and I'm not sure when
it will be fixed.
(https://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/354)

The win32gem doesn't work at all on JRuby on Windows, so in order to
bring colours to this camp I wrote wac today:
http://github.com/aslakhellesoy/wac
(No idea why nobody wrote a tool like that before).

Wac would work just as well with MRI/Windows as for JRuby/Windows. (In
fact it works with anything that prints ANSI colors on windows - it's
just piped to).

So I'd like to get rid of the dependency on win32color and just tell
all Windows users to use wac instead. The downside:
Windows users have to append | wac to all commands.
The upside? Simpler Cucumber code and less bugs/issues.

WDYT?

Aslak

Luis Lavena

unread,
Oct 12, 2009, 8:58:07 PM10/12/09
to cu...@googlegroups.com

There is a patch in the queue for that. Didn't had time to release a new version. dunno if your solution will work. Will check soon, but guess is already too late.

Sent from mobile.

aslak hellesoy

unread,
Oct 18, 2009, 4:19:16 PM10/18/09
to cu...@googlegroups.com
On Tue, Oct 13, 2009 at 2:58 AM, Luis Lavena <luisl...@gmail.com> wrote:
> There is a patch in the queue for that. Didn't had time to release a new
> version. dunno if your solution will work. Will check soon, but guess is
> already too late.
>

Is this the one?
http://github.com/jarib/win32console/commit/65c2eaa25b0d6965e0347a116fc5339b43b99b3c
If that gets applied and a new release is made I'll keep support for
win32console.

It's not urgent - I can wait a moth or so.

Cheers,
Aslak
Reply all
Reply to author
Forward
0 new messages