Mnemonics |
|
Mnemonics are special control sequences for output to a display device or printer. Mnemonic instructions are inserted within a PRINT or INPUT statement and are specific to the channel on which they are defined. The language provides an extensive list of predefined mnemonics; however, additional two-character mnemonics may be created via the MNEMONIC directive.
Below is a list of some commonly used mnemonics. For a list of all mnemonics, see Mnemonics.
Begin reverse video mode. | |
'CE' |
Clear from cursor to end of screen. |
Position cursor at home; i.e. @(0,0). | |
'CL' |
Clear from cursor to end of line. |
'CS' |
Clear screen. |
Set current attributes as defaults (color, foreground/background, etc.). | |
'FF' |
Advance page (issue form feed). |
'LF' |
Advance one line and return to column 0 (line feed). |
Input/output will be in red foreground or background (see the list of Mnemonics for other colors). | |
'RM' |
Reset to default attributes. |
For examples of how mnemonics can be used for print and display output, see:
Controlling Output
Interface Windows
Display Objects
Printing
Device Drivers