Appendix
A
I
Extended Screen and Keyboard Control
Cursor Backward (CUB)
ESC
[“D
Moves the cursor back one
or
more columns without changing
lines. The value
of
*
determines the number
of
columns moved.
The default value
for
*
is
1.
This sequence is ignored if the cur-
sor is already in the leftmost column.
Device Status Report (DSR)
ESC [6n
The console driver outputs a Cursor Position Report (CPR) se-
quence on receipt
of
DSR
(see below).
Cursor Position Report (CPR)
ESC
[*
;
*R
Reports current cursor position through the standard input de-
vice. The first parameter specifies the current line and the sec-
ond parameter specifies the current column.
Save Cursor Position (SCP)
ESC
[s
Saves the current cursor position. You can restore this position
with the Restore Cursor Position (RCP) sequence (see below).
Restore Cursor Position (RCP)
ESC
[u
Restores the cursor position to the value it had when the console
driver received the SCP sequence.
219