Ruby Conio 1.0

Author: Gabriele Secci

DESCRIPTION

Ruby Conio 1.0 is a wrapper for Turbo C conio, used to create text user interfaces developed by Gabriele Secci.

The functions of “libconio.so” are implemented in C ANSI using the “libconio.a” library and “conio.h” header, available from the site: “conio.sourceforge.net”. Module “libconio.so” are compiled with mingw32-gcc from RDK (Ruby Development Kit).

For the bug or various problem, or source “libconio.c”, please send me E-mail at:</i> [email protected]

INSTALL

GEM File:

* $ gem install conio

EXE File:

* Double click in the exe file and follow the installation instruction.

ZIP File:

* Extract the content from zip file and copy it in the gems folder of your Ruby interpreter.

EXAMPLE

This is a simple example of conio module.

require "conio"
# Set the console title
settitle("Ruby Conio example...")
# Set the text color
textcolor(RED)
# Hide cursor
setcursortype(HIDE)
# Print message
print("Press ENTER key\n\n")
# Stop program while users press ENTER...
while getch() != 13
  # nil
end
# Print message
print("OK! You are pressed ENTER key")
# Exit before 2 seconds
delay(2000)

For other examples see the “test” folder.

DEVELOPER

LICENSE

See LICENSE file.