Escape Sequence
 | 
 Action
 | 
 Control Function
 | 
| 
CSI pn @
 
 
Esc [ pn @
 | 
Insert pn blank characters. 
Default: 1.
 | 
ICH
 | 
| 
CSI ps $ }
 
 
Esc [ ps $ }
 
See "Configuring the Status Line"  for more information.
 | 
Select the status line.
ps  specifies the display to which the terminal sends data. Permissible values:
 | 
 | 
| 
0
 | 
Send characters to main display
 | 
| 
1
 | 
Send characters to status line
 | 
| 
CSI ps $ -
 
 
Esc [ ps $ -
 
See "Configuring the Status Line" for more information.
 | 
Enable the status line. The variable parameter ps indicates the status line to use. Permissible values:
 | 
    
 | 
| 
0
 | 
No status line
 | 
| 
1
 | 
Indicator status line (no-op)
 | 
| 
2
 | 
Host-writable status line
 | 
| 
CSI ! p
 
 
Esc [ ! p
 | 
Soft reset
 | 
 | 
| 
CSI > c
 
 
Esc [ > c
 
or 
 
CSI > 0 c
 
Esc [ > 0 c
 | 
Request secondary device attributes. Response is C S I > id , ver , 0 c, in which id is terminal identification and ver is version. 
 
Default response: CSI>1;1;0c
 | 
DA
 | 
| 
CSI ? ps J
 
 
Esc [ ? ps J
 | 
Selective erase in display. Permissible values for ps:
 | 
DECSED
 | 
| 
0
 | 
Cursor to end of screen
 | 
| 
1
 | 
Start to cursor
 | 
| 
2
 | 
Entire screen
 | 
| 
CSI ? ps K
 
 
Esc [ ps K
 | 
Selective erase in line. Permissible values for ps:
 | 
DECSEL
 | 
| 
0
 | 
Cursor to end of line
 | 
| 
1
 | 
Beginning to cursor
 | 
| 
2
 | 
Entire line
 | 
| 
CSI ? ps ; ps ... h
 
 
Esc [ ? ps ; ps ... h
 | 
Set Digital private mode. Permissible values for ps:
 | 
 | 
| 
1
 | 
Cursor keys mode (keypad application)
 | 
DECCKM
 | 
| 
3
 | 
Column mode (132 column) 
 | 
DECCOLM
 | 
| 
4
 | 
Scrolling mode (smooth scroll)
 | 
DECSCLM
 | 
| 
5
 | 
Screen mode (reverse video)
 | 
DECSCNM
 | 
| 
6
 | 
Origin mode
 | 
DECOM
 | 
| 
7
 | 
Autowrap mode
 | 
DECAWM
 | 
| 
8
 | 
Auto-repeat mode
 | 
DECARM
 | 
| 
9
 | 
Send MIT mouse row and column on button press
 | 
 | 
| 
25
 | 
Text cursor enable mode (cursor visible)
 | 
DECTCEM
 | 
| 
40
 | 
Allow 80-to-132 mode
 | 
 | 
| 
41
 | 
curses (1) fix
 | 
 | 
| 
42
 | 
National replacement character set mode (enabled)
 | 
DECNRCM
 | 
| 
44
 | 
Turn on margin bell
 | 
 | 
| 
45
 | 
Reverse wraparound mode
 | 
 | 
| 
46
 | 
Start logging
 | 
 | 
| 
47
 | 
Use alternate screen buffer
 | 
 | 
| 
CSI ? ps i
 
 
Esc [ ? ps i
 | 
Digital private print control mode. Permissible values for ps are:
 | 
 | 
| 
1
 | 
Print line with cursor
 | 
| 
4
 | 
Exit autoprint mode
 | 
| 
5
 | 
Enter autoprint mode
 | 
| 
10
 | 
Print main display
 | 
| 
11
 | 
Print main display
 | 
| 
CSI ? ps ; ps ... l
 
 
Esc [ ? ps ; ps ... l
 | 
Reset Digital private mode. 
Permissible values for ps include:
 | 
 | 
| 
1
 | 
Cursor keys mode (normal cursor keys)
 | 
DECCKM
 | 
| 
3
 | 
Cursor keys mode (normal cursor keys)
 | 
DECCOLM
 | 
| 
4
 | 
Scrolling mode (jump/fast scroll)
 | 
DECSCLM
 | 
| 
5
 | 
Screen mode (normal video) 
 | 
DECSCNM
 | 
| 
6
 | 
Origin mode (normal cursor)
 | 
DECOM
 | 
| 
7
 | 
Autowrap mode (wraparound)
 | 
DECAWM
 | 
| 
8
 | 
Auto-repeat mode (disabled)
 | 
DECARM
 | 
| 
9
 | 
Do not send MIT mouse row, column on button press
 | 
 | 
| 
10
 | 
Text cursor enable mode (cursor invisible)
 | 
 | 
| 
40
 | 
Do not allow 80-to-132 mode
 | 
DECTCEM
 | 
| 
41
 | 
No curses (1) fix
 | 
 | 
| 
42
 | 
National replacement character set mode (disabled)
 | 
DECNRCM
 | 
| 
44
 | 
Turn off margin bell
 | 
 | 
| 
45
 | 
No reverse wraparound mode
 | 
 | 
| 
46
 | 
Stop logging
 | 
 | 
| 
47
 | 
Use normal screen buffer
 | 
 | 
| 
CSI ? ps n
 
 
Esc [ ? ps n
 | 
See CSI ps n.
 | 
| 
CSI ? ps ; ps ... r
 
 
Esc [ ? ps ; ps ... r
 | 
Store Digital private mode. Permissible values for ps:
 | 
 | 
| 
1
 | 
Cursor keys mode (normal/application keypad)
 | 
DECCKM
 | 
| 
3
 | 
Column mode (80/132 columns)
 | 
DECCOLM
 | 
| 
4
 | 
Scrolling mode (jump (fast)/scroll)
 | 
DECSCLM
 | 
| 
5
 | 
Screen mode (normal/reverse video)
 | 
DECSCNM
 | 
| 
6
 | 
Origin mode (normal/origin) 
 | 
DECOM
 | 
| 
7
 | 
Autowrap mode (no wrap/wraparound)
 | 
DECAWM
 | 
| 
8
 | 
Auto-repeat mode (auto-repeat/no-auto-repeat)
 | 
DECARM
 | 
| 
9
 | 
Do not send/send MIT mouse row and column on button press
 | 
 | 
| 
40
 | 
Disallow/allow 80-to-132 mode
 | 
 | 
| 
41
 | 
Off/on curses (1) fix
 | 
 | 
| 
42
 | 
National replacement character set mode (disabled)
 | 
DECNRCM
 | 
| 
44
 | 
Off/on margin bell
 | 
 | 
| 
45
 | 
No reverse-wraparound/reverse wraparound mode
 | 
 | 
| 
46
 | 
Stop/start logging
 | 
 | 
| 
47
 | 
Use normal/alternate screen buffer
 | 
 | 
| 
CSI ? ps ; ps ... s
 | 
Restore Digital private mode. Permissible values for ps:
 | 
 | 
| 
1
 | 
Cursor keys mode (normal/application keypad) 
 | 
DECCKM
 | 
| 
3
 | 
Column mode (80/132 columns)
 | 
DECCOLM
 | 
| 
4
 | 
Scrolling mode (jump (fast)/scroll)
 | 
DECSCLM
 | 
| 
5
 | 
Screen mode (normal/reverse video)
 | 
DECSCNM
 | 
| 
6
 | 
Origin mode (normal/origin)
 | 
DECOM
 | 
| 
7
 | 
Autowrap mode (no wrap/ wraparound)
 | 
DECAWM
 | 
| 
8
 | 
Auto-repeat/no-auto-repeat keys
 | 
DECARM
 | 
| 
9
 | 
Do not send/send MIT mouse row and column on button press
 | 
 | 
| 
40
 | 
Disallow/allow 80-to-132 mode
 | 
 | 
| 
41
 | 
Off/on curses (1) fix
 | 
 | 
| 
42
 | 
National replacement character set mode (disabled)
 | 
DECNRCM
 | 
| 
44
 | 
Off/on margin bell
 | 
 | 
| 
45
 | 
No reverse-wraparound/reverse wraparound mode
 | 
 | 
| 
46
 | 
Stop/start logging
 | 
 | 
| 
47
 | 
Use normal/alternate screen buffer
 | 
 | 
| 
CSI ps "q
 
 
Esc [ ps " q
 | 
Select character protection attribute. Permissible values for ps:
 | 
DECSCA
 | 
| 
0
 | 
Not protected
 | 
| 
1
 | 
Protected
 | 
| 
2
 | 
Not protected
 | 
| 
CSI 0 c
 
 
CSI pn c
 
Esc [ pn c
 
Esc Z
 | 
Device attributes/terminal identification.
 
 
The response is CSI ?62;1;2;6;8c)
 | 
DA1
DECID
 | 
| 
CSI pn A 
 
 
Esc [ pn A
 | 
Cursor up pn times. 
Default: 1.
 | 
CUU
 | 
| 
CSI pn B
 
 
Esc [ pn B
 | 
Cursor down pn times. 
Default: 1.
 | 
CUD
 | 
| 
CSI pn C 
 
 
Esc [ pn C
 | 
Cursor forward pn times. 
Default: 1.
 | 
CUF
 | 
| 
CSI pn D 
 
 
Esc [ pn D
 | 
Cursor backward pn times. 
Default: 1.
 | 
CUB
 | 
| 
CSI pr ; pc H
 
 
Esc [ pr ; pc H
 | 
Cursor position. 
Default: [1,1].
 | 
CUP
 | 
| 
CSI ps J 
 
 
Esc [ ps J
 | 
Erase in display. 
Permissible values for ps:
 | 
ED
 | 
| 
0
 | 
Cursor to end of screen (default)
 | 
| 
1
 | 
Start to cursor
 | 
| 
2
 | 
Entire screen
 | 
| 
CSI ps K 
 
 
Esc [ ps K
 | 
Erase in line. 
Permissible values for ps:
 | 
EL
 | 
| 
0
 | 
Cursor to end of line (default)
 | 
| 
1
 | 
Beginning to cursor
 | 
| 
2
 | 
Entire line
 | 
| 
CSI pn L 
 
 
Esc [ pn L
 | 
Insert pn lines. 
Default: 1.
 | 
IL
 | 
| 
CSI pn M 
 
 
Esc [ pn M
 | 
Delete pn lines. 
Default: 1.
 | 
DL
 | 
| 
CSI pn P 
 
 
Esc [ pn P
 | 
Delete pn characters. 
Default: 1.
 | 
DCH
 | 
| 
CSI pn X
 
 
Esc [ pn X
 | 
Erase pn characters.
 | 
ECH
 | 
| 
CSI pr ; pc f
 
 
Esc [ pr ; pc f
 | 
Horizontal and vertical position.
 | 
HVP
 | 
| 
CSI ps g
 
 
Esc [ ps g 
 | 
Tab clear. Permissible values for ps:
 | 
TBC
 | 
| 
0
 | 
Clear current tab stop (default)
 | 
| 
2
 | 
Clear all tab stops
 | 
| 
3
 | 
Clear all tab stops
 | 
| 
CSI ps ; ps ; ps ... h
 
 
Esc [ ps ; ps ; ps ... h
 | 
Set Mode. Permissible values for ps:
 | 
 | 
| 
4
 | 
Insert mode
 | 
IRM
 | 
| 
20
 | 
Line feed/new line
 | 
LNM
 | 
| 
CSI ps i
 
 
Esc [ ps i
 | 
Print control mode. Permissible values for ps:
 | 
 | 
| 
0
 | 
Print page that has cursor
 | 
| 
4
 | 
Exit printer controller mode
 | 
| 
5
 | 
Enter printer controller mode
 | 
| 
CSI ps ; ps ; ps ... l
 
 
Esc [ ps ; ps ; ps ... l
 | 
Reset Mode. Permissible values for ps:
 | 
 | 
| 
4
 | 
Replace mode
 | 
IRM
 | 
| 
20
 | 
No line feed/no new line
 | 
LNM
 | 
| 
CSI ps ; ps ; ps ... m
 
 
Esc [ ps ; ps ; ps ... m
(For more information, see "Configuring Color Text".)
 | 
Select graphic rendition (visual attributes).
Permissible values for ps:
 | 
SGR
 | 
| 
0
 | 
Normal; clear all attributes
 | 
| 
1
 | 
Bold
 | 
| 
4
 | 
Underscore
 | 
| 
5
 | 
Blink
 | 
| 
7
 | 
Reverse video
 | 
| 
22
 | 
Normal intensity, not bold
 | 
| 
24
 | 
Not underlined
 | 
| 
25
 | 
Not blinking
 | 
| 
27
 | 
Normal video 
 | 
| 
 | 
Foreground text color:
 | 
 | 
| 
30
 | 
Black
 | 
| 
31
 | 
Red
 | 
| 
32
 | 
Green
 | 
| 
33
 | 
Yellow
 | 
| 
34
 | 
Blue
 | 
| 
35
 | 
Magenta
 | 
| 
36
 | 
Cyan
 | 
| 
37
 | 
White
 | 
| 
 | 
Background text color:
 | 
 | 
| 
40
 | 
Black
 | 
| 
41
 | 
Red
 | 
| 
42
 | 
Green
 | 
| 
43
 | 
Yellow
 | 
| 
44
 | 
Blue
 | 
| 
45
 | 
Magenta
 | 
| 
46
 | 
Cyan
 | 
| 
47
 | 
White
 | 
| 
 | 
Color-pair selection (NCD-specific values):
 | 
 | 
| 
90
 | 
Color-pair0
 | 
| 
91
 | 
Color-pair1
 | 
| 
92
 | 
Color-pair2
 | 
| 
93
 | 
Color-pair3
 | 
| 
94
 | 
Color-pair4
 | 
| 
95
 | 
Color-pair5
 | 
| 
96
 | 
Color-pair6
 | 
| 
97
 | 
Color-pair7
 | 
| 
CSI ps n
 
 
Esc [ ps n
 
or
 
CSI ? ps n
 
Esc [ ? ps n
 | 
Device status reports.
 | 
DSR
 | 
| 
ps, meaning, and response:
 | 
| 
5
 | 
Status report: CSI  0  n
 | 
| 
6
 | 
Cursor position report: CSI  r  c  R
 | 
| 
15
 | 
Printer ready: CSI  ?  10  n
 | 
| 
 | 
No printer: CSI  ?  13  n  00
 | 
| 
25
 | 
User-defined key status  (unlocked): 
 
 
CSI  ?  20  n
 | 
| 
26
 | 
 Keyboard dialect: CSI  ?  27  type  n
 | 
| 
Permissible values for type:
 | 
| 
1
 | 
North American
 | 
| 
2
 | 
British
 | 
| 
3
 | 
Flemish
 | 
| 
4
 | 
Canadian French
 | 
| 
5
 | 
Danish
 | 
| 
6
 | 
Finnish
 | 
| 
7
 | 
German
 | 
| 
8
 | 
Dutch
 | 
| 
9
 | 
Italian
 | 
| 
10
 | 
Swiss (French)
 | 
| 
11
 | 
Swiss (German)
 | 
| 
12
 | 
Swedish
 | 
| 
13
 | 
Norwegian
 | 
| 
14
 | 
French/Belgian
 | 
| 
15
 | 
Spanish
 | 
| 
16
 | 
Portuguese
 | 
| 
CSI pt ; pb r
 
 
Esc [ pt ; pb r
 | 
Set top and bottom margins (pt =top; bp=bottom). Default: full-size window.
 | 
DECSTBM
 | 
| 
8-bit mode:
 
 
DCS pc ; pl | Ky1 / St1 ; . . . Kyn / Stn ST 
 
or 
 
DCS pc ; pl | Ky1 \ St1 ; . . . Kyn \ Stn ST
 
7-bit mode:
 
Esc P  pc ; pl | Ky1 / St1 ; . . . Kyn / Stn ST 
 
or
 
Esc P pc ; pl | Ky1 \ St1 ; . . . Kyn \ Stn ST
 
(See "Programming Function Keys on N-108LK Keyboards" for more information.)
 | 
User-defined keys (F6-F14, Do, Help, F17-F20):
 | 
DECUDK
 | 
| 
pc   Clear parameter. Permissible values:
 | 
| 
0
 | 
Clear all keys before starting (resetting)
 | 
| 
1
 | 
Clear one key at a time, as overwritten
 | 
| 
pl    Lock parameter (no-op). Permissible values:
 | 
| 
0
 | 
Lock the keys
 | 
| 
1
 | 
 Unlock the keys
 | 
| 
Ky1/St1 or Ky1\St1  Key definition strings
 | 
| 
ST  String terminator character or ESC \
 | 
| 
Esc G (embedded space required)
 | 
Sending 8-bit C1 control characters
 | 
S8C1T
 | 
| 
Esc F (embedded space required)
 | 
Sending 7-bit C1 control characters
 | 
S7C1T
 | 
| 
Esc }
 | 
Select locking shift of G2 character set, right
 | 
LS2R
 | 
| 
Esc =
 | 
Keypad application mode
 | 
DECKPAM
 | 
| 
Esc >
 | 
Keypad numeric mode
 | 
DECPNM
 | 
| 
Esc # 3
 | 
Double-width, single-height line, top
 | 
DECDHL
 | 
| 
Esc # 4
 | 
Double-width, single-height line, bottom
 | 
DECDHL
 | 
| 
Esc # 5
 | 
Single-width, single-height line
 | 
DECSWL
 | 
| 
Esc # 6
 | 
Double-width, single-height line
 | 
DECDWL
 | 
| 
Esc # 8
 | 
Screen alignment pattern
 | 
DECALN
 | 
| 
 | 
Designate character sets:
 | 
SCS
 | 
| 
Esc ( ps
 | 
 | 
Select character set G0.
 | 
| 
Esc ) ps
 | 
 | 
Select character set G1.
 | 
| 
Esc * ps
 | 
 | 
Select character set G2.
 | 
| 
Esc + ps
 | 
 | 
Select character set G3.
 | 
| 
 | 
Permitted values for ps and corresponding character sets:
 | 
| 
B
 | 
ASCII
 | 
| 
%5
 | 
Digital supplementary
 | 
| 
<
 | 
Digital user supplementary
 | 
| 
0
 | 
Digital graphics
 | 
| 
A
 | 
United Kingdom
 | 
| 
4
 | 
Dutch
 | 
| 
C
 | 
FINNISH
 | 
| 
5
 | 
FINNISH 2
 | 
| 
R
 | 
French
 | 
| 
Q
 | 
French Canadian
 | 
| 
9
 | 
French Canadian 2
 | 
| 
K
 | 
German
 | 
| 
Y
 | 
Italian
 | 
| 
E
 | 
Norwegian
 | 
| 
6
 | 
Norwegian 2
 | 
| 
\
 | 
Norwegian 3
 | 
| 
%6
 | 
Portuguese
 | 
| 
Z
 | 
Spanish
 | 
| 
H
 | 
Swedish
 | 
| 
7
 | 
Swedish 2
 | 
| 
=
 | 
Swiss
 | 
| 
Esc |
 | 
Select locking shift of G3 character set, right
 | 
LS3R
 | 
| 
Esc ~ 
 | 
Select locking shift of G1 character set, right
 | 
LS1R
 | 
| 
Esc 7
 | 
Save cursor
 | 
DECSC
 | 
| 
Esc 8
 | 
Restore cursor
 | 
DECRC
 | 
| 
Esc D
 | 
Index
 | 
IND
 | 
| 
Esc E
 | 
New line
 | 
NEL
 | 
| 
Esc H
 | 
Horizontal tab set
 | 
HTS
 | 
| 
Esc M
 | 
Reverse index
 | 
RI
 | 
| 
Esc N
 | 
Select single-shift of G2 character set 
 | 
SS2
 | 
| 
Esc O
 | 
Select single-shift of G3 character set 
 | 
SS3
 | 
| 
Esc Z
 
 
Esc [ c
 | 
Send device attributes/terminal
identification. Response:  CSI?62;1;2;6;8c
 | 
DECID
 | 
| 
Esc c
 | 
Hard reset
 | 
RIS
 | 
| 
Esc n 
 | 
Select locking shift of G2 character set
 | 
LS2
 | 
| 
Esc o  
 | 
Select locking shift of G3 character set
 | 
LS3
 | 
| 
OSC ps ; string NP
 
 
Esc ] ps ; string NP
(For more information, see "Configuring Window and Icon Titles".)
 | 
OSC Mode-Set icon and window titles.  Variables are:
 | 
 | 
| 
NP -Any non-printing character (discarded)
 | 
| 
string-ASCII printable string (maximum 511 characters)
 | 
| 
ps-
 | 
| 
0 
 | 
Use string as new icon name and title
 | 
| 
1 
 | 
Use string as new icon name only
 | 
| 
2
 | 
 Use string as new title only
 | 
| 
OSC ps ND string NP
 
 
Esc ] ps ND string NP
(For more information, see "Configuring Color Text".)
 | 
Color-pair specification (NCD-specific)
Variables are defined as follows:
 | 
 | 
| 
ps -90 to 97
 | 
| 
ND-Any non-digit character
 | 
| 
string -foreground/background
 | 
| 
NP -Any non-printing character
 |