[ANN] win32console 1.3.0 Released

L

Luis Lavena

win32console version 1.3.0 has been released!

* <http://rubyforge.org/projects/winconsole>
* <http://github.com/luislavena/win32console>
* <http://rdoc.info/projects/luislavena/win32console>

Win32::Console allows controling the windows command line terminal
thru an OO-interface. This allows you to query the terminal (find
its size, characters, attributes, etc). The interface and functionality
should be identical to Perl's counterpart.

A port of Perl's Win32::Console and Win32::Console::ANSI modules.

This gem packages Gonzalo Garramuno's Win32::Console project, and includes
a compiled binary for speed. The Win32::Console project's home can be
found at:

http://rubyforge.org/projects/win32console

Changes:

### 1.3.0 / 2007-03-14

* Enhancements
* Works with Ruby 1.9
* Usage of Hoe and rake-compiler to ease releasing and extension
compilation.
* Redirect STDERR to be processed also for ANSI codes. Closes GH-4
* Allow ECHO to be displayed [jloveces]

* Bugfixes
* Properly catch coloring when using autospec in Ruby 1.9 [vertiginous]
Closes GH-3

* Known issues:
* win32console no longer automatically translate encoding to the console
output enconding. Please use Iconv to convert from your encoding (eg. U=
TF8)
to current console output:

current_cp =3D Win32::Console::OutputCP()
Iconv.iconv("cp#{current_cp}", "utf-8", utf_string)

A working example can be seen here: http://gist.github.com/265593

--=20
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exup=E9ry
 
D

Daniel Berger

Luis said:
win32console version 1.3.0 has been released!
<snip>

Cool.

* Known issues:
* win32console no longer automatically translate encoding to the console
output enconding.

Just curious, why not?

Regards,

Dan
 
L

Luis Lavena

Just curious, why not?

The hardcoded codepage translation were removed as these included
binary data not compatible with 1.9.

Due the nature of 1.9, performing regular expression matches for ANSI
escape codes between encoding was expensive.

So there is no magic Iconv happening and instead allowed the developer
control it.

Regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top