Guidance
指路人
g.yi.org
software / RapidQ / RQ Doc / html / console.html

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Appendix C: Console keywords
Rapid-Q Documentation by William Yu (c)1999-2000 Appendix C: Console Keywords


Console Keywords

Please note that it's possible to use some Console statements in Linux/Unix even if you compiled your program as GUI. However, this is not possible under Windows. The console statements allowed in Linux/Unix without having to compile as CONSOLE are: CLS, PRINT, and INPUT. SLEEP can also be used without consequences.

KeywordSupportUsage/Description



CLSWindows UnixCLS
Clears console screen
COLORWindows UnixCOLOR [Fore%][, Back%]
Sets current color attribute, you can ignore either one of the parameters
CONSOLE.INPUTHANDLEWindowshnd = CONSOLE.INPUTHANDLE
Returns the console input handle
CONSOLE.OUTPUTHANDLEWindowshnd = CONSOLE.OUTPUTHANDLE
Returns the console output handle
CSRLINWindows UnixCurRow% = CSRLIN
Returns current row of cursor
INKEY$Windows UnixA$ = INKEY$
Returns ASCII/Extended key character typed
INPUTWindows UnixINPUT A$
Reads a full line of input from user
LOCATEWindows UnixLOCATE [Y%][, X%][, cursor]
Moves cursor to Y%, X% (upper left starts at 1,1). You can ignore either one of the parameters
PCOPYWindowsPCOPY source, dest
Copy page from source to dest. The visible page is 0. There are 7 off screen pages.
PEEKWindowsA% = PEEK([#PageNum,] address)
Returns the char/attribute value at address
POKEWindowsPOKE [#PageNum,] address, byte
Poke attribute or char at address
POS(0)Windows UnixCurPos% = POS(0)
Returns current position of cursor
PRINTWindows UnixPRINT [#PageNum[;|,]][stuff][;|,][...]
Write to standard output (console). To write to the offscreen buffers, use #PageNum. Where PageNum is 1-7. Only works under Windows.
SCREENWindowsA% = SCREEN(row, col [, colorflag])
Returns the chararacter or attribute value at (row,col)
SETCONSOLETITLEWindowsSetConsoleTitle(Title$)
Set console title
SLEEPWindows UnixSLEEP n
Delay for n seconds, which can be a fraction


Prev Chapter Contents Next Chapter
掌柜推荐
 
 
¥289.00 ·
 
 
¥1,080.00 ·
 
 
¥1,380.00 ·
 
 
¥638.00 ·
 
 
¥1,290.00 ·
 
 
¥1,420.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2015-12-25 19:42:24