ProvideX V8.20 > Language Reference > 5. Mnemonics
634
'RL' Mnemonic
       Return Line Contents
Editing
Description
Use 'RL' to return the contents of the current line with the next terminal input.
Note: In graphics mode ( 'GS' ), if a terminal mnemonic transmits the contents of the
screen to the program, the data consists of four bytes for each character. The first two
bytes are background and foreground characters, the third byte holds character
attributes, and the fourth byte is the actual character on the screen.
Example
0040 PRINT
'CS'
0050 PRINT
@(5,5),DIM(10,"A")
0060 INPUT
@(5,5),'RL',B$
0070 PRINT
B$
When Run:
AAAAAAAAAA
AAAAAAAAAA
'RM' Mnemonic
      Reset to Default Mode
Behaviour
Description
Use 'RM' to reset to default modes/attributes (colour, reverse video mode,
underscoring mode, etc.). See also 'SN' Native Screen Mode, p.638 and 'SX' Set
Extended Screen Mode, p.639.
'RP' Mnemonic
    Terminal Read to End
Editing
Description
This mnemonic performs the same function as 'TR' Terminal Read from Start,
p.641, except that it reports values from the current cursor location to the end of the
screen. ('TR' returns the screen contents from 0,0 to the current cursor location.)
'RS' Mnemonic
   Restore Screen
Character Display or Editing
Description
Use 'RS' to restore the complete terminal screen from the information in memory.
This mnemonic can be used to reset the screen after transmission errors or when
operating system output has disrupted screen contents.