hotgazpacho / ironruby-win32console
- Source
- Commits
- Network (2)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
1772114
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
README | ||
| |
Rakefile | ||
| |
TODO | ||
| |
lib/ | ||
| |
src/ | ||
| |
test/ | ||
| |
win32console-MRI-README.txt | ||
| |
win32console-MRI-README_GEM.txt |
README
ironruby-win32console - a C# port of the Ruby win32console library for use with IronRuby ======================================================================================== The C# sources are located in src\IronRuby.Libraries.Win32.Console. An NUnit (2.4.8) test suite, located in src\IronRuby.Libraries.Win32.Console.Tests. To compile and run the tests, you'll need NUnit 2.4.8 installed, as I'm not sure of the legal ramifications of distributing NUnit binaries.s A Visual Studio 2008 Solution file is also included. Adapted from win32console-MRI-README.txt: ========================================= This file implements a port of Perl's Win32::Console and Win32::Console::ANSI modules. 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. Win32::Console consists of a Ruby .rb interface. For best performance, this library has been also ported to C#. If you lack a C# compiler, you can still use the class thru the ruby interface. If you can compile it, then the ruby interface is not used and the C# functions are called instead. Win32::Console::ANSI is a class derived from IO that seamlessly translates ANSI Esc control character codes into Windows' command.exe or cmd.exe equivalents. These modules allow you to develop command-line tools that can take advantage of the unix terminal functions while still being portable. One of the most common uses for this is to allow to color your output. The modules are disted with Term/ansicolor.rb, too, as it is a nice thing to verify it is working properly.

