Announcing the first release of a full port of Perl’s Win32::Console and
Win32::Console::ANSI.
http://rubyforge.org/projects/win32console/
These module allow working with Windows’ Consoles much more easily (changing
colors, positioning cursor, querying info, and emulating ANSI control
characters).
It was also done as an exercise to get myself familiar with ruby’s C
extensions.
Win32::Console is available in both .rb (similar to Win32API_Console as it was
largely based on it) and C++ versions for full speed. But both have identical
interfaces to Perl (ie. much simpler).
Win32::Console::ANSI allows window’s consoles to seamlessly receive and
translate Unix ANSI Esc control codes (ie. have all your prints and puts use
ANSI codes like colors as used in Term/ansicolor.rb).
v0.5 - Module is for most purposes, functional and useful.
All functions have been ported, but not tested (reading routines, specially).
No docs (read Perl docs for now).