Posted on Dec 17, 2009

win32console upcoming changes and feedback

For the ones not aware of, win32console (originally here, gemified here) is a project that provides ANSI coloring for Windows.

Yeah, Windows doesn’t do ANSI coloring like any POSIX terminal, and it has it’s own API with extended control of the console functionality.

UPDATE: Please see this post for the beta1 release of new win32console.

So, I took over the project long ago, since required a couple of fixed. You could find the code here at GitHub

I must say that my backyard and house is getting crowded. Lot of small Open Source projects that require attention and some of those that require some special care, like this case.

What do I mean by this?

win32console do more than just fancy colors, it also translates the current console page back and forth using some clever but not portable character extrapolation…

Now, Ruby 1.9 doesn’t like you do that, not at all.

So wonder, what if I just get rid of that? How much of win32console features are being used beyond the ANSI coloring?

I just verified that tweak work with cucumber in 1.8 and 1.9, but dunno other user cases.

Want to know all that, since I’m creating a much simpler solution that uses FFI and will provide colors for both MRI and JRuby, no extension compilation and will deprecate the need of win32console.

What do you think? Please let me know your thoughts in the comments.

Thank you :)

8 Comments