luislavena / win32console
- Source
- Commits
- Network (4)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
aff082d
win32console / README.txt
| 39bb29d5 » | luislavena | 2008-05-21 | 1 | This file implements a port of Perl's Win32::Console | |
| 2 | and Win32::Console::ANSI modules. | ||||
| 3 | |||||
| 4 | Win32::Console allows controling the windows command line terminal | ||||
| 5 | thru an OO-interface. This allows you to query the terminal (find | ||||
| 6 | its size, characters, attributes, etc). The interface and functionality | ||||
| 7 | should be identical to Perl's. | ||||
| 8 | |||||
| 9 | Win32::Console consists of a Ruby .rb interface. | ||||
| 10 | For best performance, this library has been also ported to C. | ||||
| 11 | If you lack a C compiler, you can still use the class thru the ruby | ||||
| 12 | interface. If you can compile it, then the ruby interface is not | ||||
| 13 | used and the C functions are called instead. | ||||
| 14 | |||||
| 15 | Win32::Console::ANSI is a class derived from IO that seamlessly | ||||
| 16 | translates ANSI Esc control character codes into Windows' command.exe | ||||
| 17 | or cmd.exe equivalents. | ||||
| 18 | |||||
| 19 | These modules allow you to develop command-line tools that can take | ||||
| 20 | advantage of the unix terminal functions while still being portable. | ||||
| 21 | One of the most common uses for this is to allow to color your | ||||
| 22 | output. | ||||
| 23 | The modules are disted with Term/ansicolor.rb, too, as it is a nice | ||||
| 24 | thing to verify it is working properly. | ||||
| 25 | |||||
