Console IO functions.
Members
# 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 DARKGRAY
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 SOLIDCURSOR
Properties:
Name | Type | Description |
---|---|---|
cursor |
number
|
type definition for SetCursorType(). A solid block is displayed. |
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 CGets() → {string}
Get a string from the console (including editing function).
the string entered.
string
# inner CPuts(str)
Write string to current cursor position.
Parameters:
Name | Type | Description |
---|---|---|
str |
string
|
# 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 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 InsertLine()
Insert a line at current cursor position, the current line and lines below scroll down.
# inner PutCh(the)
put a character on the screen.
Parameters:
Name | Type | Description |
---|---|---|
the |
string
|
character. |
# inner TextBackground(col)
Set background color.
Parameters:
Name | Type | Description |
---|---|---|
col |
number
|
the color. |
# inner UngetCh(the)
return a character to input buffer.
Parameters:
Name | Type | Description |
---|---|---|
the |
string
|
character. |