| 1 |
Sequences documented in parens are implicit ones from parser.c, which move |
| 2 |
between states. |
| 3 |
|
| 4 |
1 = VT100 |
| 5 |
2 = VT220 |
| 6 |
3 = VT320 |
| 7 |
|
| 8 |
C0 controls |
| 9 |
|
| 10 |
123 0x00 = NUL |
| 11 |
123 0x07 = BEL |
| 12 |
123 0x08 = BS |
| 13 |
123 0x09 = HT |
| 14 |
123 0x0A = LF |
| 15 |
123 0x0B = VT |
| 16 |
123 0x0C = FF |
| 17 |
123 0x0D = CR |
| 18 |
123 0x0E = LS1 |
| 19 |
123 0x0F = LS0 |
| 20 |
(0x18 = CAN) |
| 21 |
(0x1A = SUB) |
| 22 |
(0x1B = ESC) |
| 23 |
|
| 24 |
123 0x7f = DEL (ignored) |
| 25 |
|
| 26 |
C1 controls |
| 27 |
|
| 28 |
123 0x84 = IND |
| 29 |
123 0x85 = NEL |
| 30 |
123 0x88 = HTS |
| 31 |
123 0x8D = RI |
| 32 |
23 0x8e = SS2 |
| 33 |
23 0x8f = SS3 |
| 34 |
(0x90 = DCS) |
| 35 |
(0x9B = CSI) |
| 36 |
(0x9C = ST) |
| 37 |
(0x9D = OSC) |
| 38 |
|
| 39 |
Escape sequences |
| 40 |
- excluding sequences that are C1 aliases |
| 41 |
|
| 42 |
123 ESC () = SCS, select character set (G0, G1) |
| 43 |
23 ESC *+ = SCS, select character set (G2, G3) |
| 44 |
123 ESC 7 = DECSC - save cursor |
| 45 |
123 ESC 8 = DECRC - restore cursor |
| 46 |
123 ESC # 3 = DECDHL, double-height line (top half) |
| 47 |
123 ESC # 4 = DECDHL, double-height line (bottom half) |
| 48 |
123 ESC # 5 = DECSWL, single-width single-height line |
| 49 |
123 ESC # 6 = DECDWL, double-width single-height line |
| 50 |
123 ESC # 8 = DECALN |
| 51 |
123 ESC < = Ignored (used by VT100 to exit VT52 mode) |
| 52 |
123 ESC = = DECKPAM, keypad application mode |
| 53 |
123 ESC > = DECKPNM, keypad numeric mode |
| 54 |
23 ESC Sp F = S7C1T |
| 55 |
23 ESC Sp G = S8C1T |
| 56 |
(ESC P = DCS) |
| 57 |
(ESC [ = CSI) |
| 58 |
(ESC \ = ST) |
| 59 |
(ESC ] = OSC) |
| 60 |
123 ESC c = RIS, reset initial state |
| 61 |
3 ESC n = LS2 |
| 62 |
3 ESC o = LS3 |
| 63 |
3 ESC ~ = LS1R |
| 64 |
3 ESC } = LS2R |
| 65 |
3 ESC | = LS3R |
| 66 |
|
| 67 |
DCSes |
| 68 |
|
| 69 |
3 DCS $ q ST = DECRQSS |
| 70 |
3 m = Request SGR |
| 71 |
Sp q = Request DECSCUSR |
| 72 |
3 " q = Request DECSCA |
| 73 |
3 r = Request DECSTBM |
| 74 |
s = Request DECSLRM |
| 75 |
|
| 76 |
CSIs |
| 77 |
23 CSI @ = ICH |
| 78 |
123 CSI A = CUU |
| 79 |
123 CSI B = CUD |
| 80 |
123 CSI C = CUF |
| 81 |
123 CSI D = CUB |
| 82 |
CSI E = CNL |
| 83 |
CSI F = CPL |
| 84 |
CSI G = CHA |
| 85 |
123 CSI H = CUP |
| 86 |
CSI I = CHT |
| 87 |
123 CSI J = ED |
| 88 |
23 CSI ? J = DECSED, selective erase in display |
| 89 |
123 CSI K = EL |
| 90 |
23 CSI ? K = DECSEL, selective erase in line |
| 91 |
23 CSI L = IL |
| 92 |
23 CSI M = DL |
| 93 |
23 CSI P = DCH |
| 94 |
CSI S = SU |
| 95 |
CSI T = SD |
| 96 |
23 CSI X = ECH |
| 97 |
CSI Z = CBT |
| 98 |
CSI ` = HPA |
| 99 |
CSI a = HPR |
| 100 |
CSI b = REP |
| 101 |
123 CSI c = DA, device attributes |
| 102 |
123 0 = DA |
| 103 |
23 CSI > c = DECSDA |
| 104 |
23 0 = SDA |
| 105 |
CSI d = VPA |
| 106 |
CSI e = VPR |
| 107 |
123 CSI f = HVP |
| 108 |
123 CSI g = TBC |
| 109 |
123 CSI h = SM, Set mode |
| 110 |
123 CSI ? h = DECSM, DEC set mode |
| 111 |
CSI j = HPB |
| 112 |
CSI k = VPB |
| 113 |
123 CSI l = RM, Reset mode |
| 114 |
123 CSI ? l = DECRM, DEC reset mode |
| 115 |
123 CSI m = SGR, Set Graphic Rendition |
| 116 |
123 CSI n = DSR, Device Status Report |
| 117 |
23 5 = operating status |
| 118 |
23 6 = CPR = cursor position |
| 119 |
23 CSI ? n = DECDSR; behaves as DSR but uses CSI ? instead of CSI to respond |
| 120 |
23 CSI ! p = DECSTR, soft terminal reset |
| 121 |
3 CSI ? $ p = DECRQM, request mode |
| 122 |
CSI Sp q = DECSCUSR (odd numbers blink, even numbers solid) |
| 123 |
1 or 2 = block |
| 124 |
3 or 4 = underline |
| 125 |
5 or 6 = I-beam to left |
| 126 |
23 CSI " q = DECSCA, select character attributes |
| 127 |
123 CSI r = DECSTBM |
| 128 |
CSI s = DECSLRM |
| 129 |
CSI ' } = DECIC |
| 130 |
CSI ' ~ = DECDC |
| 131 |
|
| 132 |
OSCs |
| 133 |
|
| 134 |
OSC 0; = Set icon name and title |
| 135 |
OSC 1; = Set icon name |
| 136 |
OSC 2; = Set title |
| 137 |
|
| 138 |
Standard modes |
| 139 |
|
| 140 |
23 SM 4 = IRM |
| 141 |
123 SM 20 = NLM, linefeed/newline |
| 142 |
|
| 143 |
DEC modes |
| 144 |
|
| 145 |
123 DECSM 1 = DECCKM, cursor keys |
| 146 |
123 DECSM 5 = DECSCNM, screen |
| 147 |
123 DECSM 6 = DECOM, origin |
| 148 |
123 DECSM 7 = DECAWM, autowrap |
| 149 |
DECSM 12 = Cursor blink |
| 150 |
23 DECSM 25 = DECTCEM, text cursor enable |
| 151 |
DECSM 69 = DECVSSM, vertical screen split |
| 152 |
DECSM 1000 = Mouse click/release tracking |
| 153 |
DECSM 1002 = Mouse click/release/drag tracking |
| 154 |
DECSM 1003 = Mouse all movements tracking |
| 155 |
DECSM 1004 = Focus in/out reporting |
| 156 |
DECSM 1005 = Mouse protocol extended (UTF-8) - not recommended |
| 157 |
DECSM 1006 = Mouse protocol SGR |
| 158 |
DECSM 1015 = Mouse protocol rxvt |
| 159 |
DECSM 1047 = Altscreen |
| 160 |
DECSM 1048 = Save cursor |
| 161 |
DECSM 1049 = 1047 + 1048 |
| 162 |
DECSM 2004 = Bracketed paste |
| 163 |
|
| 164 |
Graphic Renditions |
| 165 |
|
| 166 |
123 SGR 0 = Reset |
| 167 |
123 SGR 1 = Bold on |
| 168 |
SGR 3 = Italic on |
| 169 |
123 SGR 4 = Underline single |
| 170 |
SGR 4:x = Underline style |
| 171 |
123 SGR 5 = Blink on |
| 172 |
123 SGR 7 = Reverse on |
| 173 |
SGR 9 = Strikethrough on |
| 174 |
SGR 10-19 = Select font |
| 175 |
SGR 21 = Underline double |
| 176 |
23 SGR 22 = Bold off |
| 177 |
SGR 23 = Italic off |
| 178 |
23 SGR 24 = Underline off |
| 179 |
23 SGR 25 = Blink off |
| 180 |
23 SGR 27 = Reverse off |
| 181 |
SGR 29 = Strikethrough off |
| 182 |
SGR 30-37 = Foreground ANSI |
| 183 |
SGR 38 = Foreground alternative palette |
| 184 |
SGR 39 = Foreground default |
| 185 |
SGR 40-47 = Background ANSI |
| 186 |
SGR 48 = Background alternative palette |
| 187 |
SGR 49 = Background default |
| 188 |
SGR 90-97 = Foreground ANSI high-intensity |
| 189 |
SGR 100-107 = Background ANSI high-intensity |
| 190 |
|
| 191 |
The state storage used by ESC 7 and DECSM 1048/1049 is shared. |
| 192 |
|
| 193 |
Unimplemented sequences: |
| 194 |
|
| 195 |
The following sequences are not recognised by libvterm. |
| 196 |
|
| 197 |
123 0x05 = ENQ |
| 198 |
3 0x11 = DC1 (XON) |
| 199 |
3 0x13 = DC3 (XOFF) |
| 200 |
12 ESC Z = DECID, identify terminal |
| 201 |
DCS $ q = [DECRQSS] |
| 202 |
3 " p = Request DECSCL |
| 203 |
3 $ } = Request DECSASD |
| 204 |
3 $ ~ = Request DECSSDT |
| 205 |
23 DCS { = DECDLD, down-line-loadable character set |
| 206 |
23 DCS | = DECUDK, user-defined key |
| 207 |
23 CSI i = DEC printer control |
| 208 |
23 CSI " p = DECSCL, set compatibility level |
| 209 |
1 CSI q = DECLL, load LEDs |
| 210 |
3 CSI $ u = DECRQTSR, request terminal state report |
| 211 |
3 1 = terminal state report |
| 212 |
3 CSI & u = DECRQUPSS, request user-preferred supplemental set |
| 213 |
3 CSI $ w = DECRQPSR, request presentation state report |
| 214 |
3 1 = cursor information report |
| 215 |
3 2 = tab stop report |
| 216 |
1 CSI x = DECREQTPARM, request terminal parameters |
| 217 |
123 CSI y = DECTST, invoke confidence test |
| 218 |
3 CSI $ } = DECSASD, select active status display |
| 219 |
3 CSI $ ~ = DECSSDT, select status line type |
| 220 |
23 SM 2 = KAM, keyboard action |
| 221 |
123 SM 12 = SRM, send/receive |
| 222 |
123 DECSM 2 = DECANM, ANSI/VT52 |
| 223 |
123 DECSM 3 = DECCOLM, 132 column |
| 224 |
123 DECSM 4 = DECSCLM, scrolling |
| 225 |
123 DECSM 8 = DECARM, auto-repeat |
| 226 |
12 DECSM 9 = DECINLM, interlace |
| 227 |
23 DECSM 18 = DECPFF, print form feed |
| 228 |
23 DECSM 19 = DECPEX, print extent |
| 229 |
23 DECSM 42 = DECNRCM, national/multinational character |