[ANN] win32console 1.3.0 Released

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. UTF8)
    to current console output:

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

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

···

--
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éry

Luis Lavena wrote:

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

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,

···

On Mar 15, 2:37 am, Daniel Berger <djber...@gmail.com> wrote:

Luis Lavena wrote:

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

Just curious, why not?

--
Luis Lavena