Rapid-Q Documentation by William Yu (c)1999-2000 | Appendix C: Console Keywords |
|
Keyword | Support | Usage/Description |
|
|
|
CLS | Windows Unix | CLS Clears console screen |
COLOR | Windows Unix | COLOR [Fore%][, Back%] Sets current color attribute, you can ignore either one of the parameters |
CONSOLE.INPUTHANDLE | Windows | hnd = CONSOLE.INPUTHANDLE Returns the console input handle |
CONSOLE.OUTPUTHANDLE | Windows | hnd = CONSOLE.OUTPUTHANDLE Returns the console output handle |
CSRLIN | Windows Unix | CurRow% = CSRLIN Returns current row of cursor |
INKEY$ | Windows Unix | A$ = INKEY$ Returns ASCII/Extended key character typed |
INPUT | Windows Unix | INPUT A$ Reads a full line of input from user |
LOCATE | Windows Unix | LOCATE [Y%][, X%][, cursor] Moves cursor to Y%, X% (upper left starts at 1,1). You can ignore either one of the parameters |
PCOPY | Windows | PCOPY source, dest Copy page from source to dest. The visible page is 0. There are 7 off screen pages. |
PEEK | Windows | A% = PEEK([#PageNum,] address) Returns the char/attribute value at address |
POKE | Windows | POKE [#PageNum,] address, byte Poke attribute or char at address |
POS(0) | Windows Unix | CurPos% = POS(0) Returns current position of cursor |
Windows Unix | PRINT [#PageNum[;|,]][stuff][;|,][...] Write to standard output (console). To write to the offscreen buffers, use #PageNum. Where PageNum is 1-7. Only works under Windows. |
|
SCREEN | Windows | A% = SCREEN(row, col [, colorflag]) Returns the chararacter or attribute value at (row,col) |
SETCONSOLETITLE | Windows | SetConsoleTitle(Title$) Set console title |
SLEEP | Windows Unix | SLEEP n Delay for n seconds, which can be a fraction |
Prev Chapter | Contents | Next Chapter |