Module

conio

Console IO functions.

Members

# inner BLACK

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner BLUE

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner BROWN

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner BW40

Properties:
Name Type Description
text number mode definition for TextMode(). 40-column black and white (on a color screen).

# inner BW80

Properties:
Name Type Description
text number mode definition for TextMode(). 80-column black and white (on a color screen).

# inner C40

Properties:
Name Type Description
text number mode definition for TextMode(). 40-color color.

# inner C80

Properties:
Name Type Description
text number mode definition for TextMode(). 80-column color.

# inner C4350

Properties:
Name Type Description
text number mode definition for TextMode(). 80-column, 43- (on EGAs) or 50-row (on VGAs) color.

# inner CYAN

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner DARKGRAY

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner GREEN

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner LASTMODE

Properties:
Name Type Description
text number mode definition for TextMode(). The text mode which was in effect before the last call to textmode().

# inner LIGHTBLUE

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner LIGHTCYAN

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner LIGHTGRAY

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner LIGHTGREEN

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner LIGHTMAGENTA

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner LIGHTRED

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner MAGENTA

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner MONO

Properties:
Name Type Description
text number mode definition for TextMode(). The monochrome monitor.

# inner NOCURSOR

Properties:
Name Type Description
cursor number type definition for SetCursorType(). No cursor is displayed.

# inner NORMALCURSOR

Properties:
Name Type Description
cursor number type definition for SetCursorType(). An underline cursor is displayed.

# inner RED

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner SOLIDCURSOR

Properties:
Name Type Description
cursor number type definition for SetCursorType(). A solid block is displayed.

# inner WHITE

Properties:
Name Type Description
color number for TextColor() and TextBackground().

# inner YELLOW

Properties:
Name Type Description
color number for TextColor() and TextBackground().

Methods

# inner AsciiCharDef(charCode) → {string}

convert a character code into a string containing that character.
Parameters:
Name Type Description
charCode number character code.
a string with that character.
string

# inner BlinkVideo()

Set 8 background color mode with blinking.

# inner CGets() → {string}

Get a string from the console (including editing function).
the string entered.
string

# inner ClearEol()

Clear until end of current line.

# inner ClearScreen()

Clear screen.

# inner CPuts(str)

Write string to current cursor position.
Parameters:
Name Type Description
str string

# inner DeleteLine()

Delete current line, lines below scroll up.

# inner EnableScrolling(ena)

Enable/disable automatic scrolling on the screen.
Parameters:
Name Type Description
ena boolean true to enable scrolling, false to disable it.

# inner GetCh() → {string}

get a character w/o echo.
the character.
string

# inner GetChE() → {string}

get a character w/ echo.
the character.
string

# inner GetXKey() → {number}

Waits for the user to press one key, then returns that key. Alt-key combinations have 0x100 added to them, and extended keys have 0x200 added to them.
key code.
number

# inner GotoXY(x, y)

Set cursor position, starts at (1,1).
Parameters:
Name Type Description
x number
y number

# inner HighVideo()

Set bright character mode.

# inner InsertLine()

Insert a line at current cursor position, the current line and lines below scroll down.

# inner IntenseVideo()

Set 16 background color mode.

# inner LowVideo()

Set dim character mode.

# inner PutCh(the)

put a character on the screen.
Parameters:
Name Type Description
the string character.

# inner ScreenCols()

Get max number of screen columns (width).

# inner ScreenRows()

Get max number of screen rows (height).

# inner ScreenVisualBell()

Flash the screen.

# inner SetCursorType(type)

Change type of cursor.
Parameters:
Name Type Description
type number

# inner TextBackground(col)

Set background color.
Parameters:
Name Type Description
col number the color.

# inner TextColor(col)

Set text color.
Parameters:
Name Type Description
col number the color.

# inner TextMode(mode)

Change text mode.
Parameters:
Name Type Description
mode number mode.

# inner UngetCh(the)

return a character to input buffer.
Parameters:
Name Type Description
the string character.

# inner WhereX() → {number}

Cursor x position (starts at 1).
x position.
number

# inner WhereY() → {number}

Cursor y position (starts at 1).
y position.
number