Escape Code

This article introduces used xterm escape codes, and also presents terminal color codes visually.

As discussed in this article, terminal escape codes are used to deliver control information over the terminal, e.g., the cursor movement, the color changing.

Escape code is also called escape sequences or control sequences sometimes. A complete set of them can be found here.

Color Escape Codes

This section presents the commonly used xterm color escape codes. Color escape codes are actually part of control sequences. They are listed here for your convenience.

8 Color Escape Codes

8 color is supported by all terminal by default. Their escape codes are listed in the following chart.

NameColorHex Color CodeForeground Escape CodeBackground Escape Code
Black#000000\x1b[1;30m\x1b[1;40m
Red#cc0000\x1b[1;31m\x1b[1;41m
Green#4e9a06\x1b[1;32m\x1b[1;42m
Yellow#c4a000\x1b[1;33m\x1b[1;43m
Blue#729fcf\x1b[1;34m\x1b[1;44m
Magenta#75507b\x1b[1;35m\x1b[1;45m
Cyan#06989a\x1b[1;36m\x1b[1;46m
White#d3d7cf\x1b[1;37m\x1b[1;47m
Default\x1b[1;39m\x1b[1;49m

You can use the following command (in bash) for testing:

echo -e "\x1b[1;32mtext\x1b[0m"

256 Color Escape Codes

256 colors are supported by almost all the terminals. To enable 256 colors, make sure you have your environment variable TERM set as xterm-256colors.

The terminal 256 color uses the following escape codes:

  • foreground color: \x1b[38:5:${number}m
  • background color: \x1b[48:5:${number}m

The following chart lists the default 256 colors supported in the terminal.

NameColorHex Color CodeForeground Escape CodeBackground Escape Code
0Black (SYSTEM)#000000\x1b[38:5:0m\x1b[48:5:0m
1Maroon (SYSTEM)#800000\x1b[38:5:1m\x1b[48:5:1m
2Green (SYSTEM)#008000\x1b[38:5:2m\x1b[48:5:2m
3Olive (SYSTEM)#808000\x1b[38:5:3m\x1b[48:5:3m
4Navy (SYSTEM)#000080\x1b[38:5:4m\x1b[48:5:4m
5Purple (SYSTEM)#800080\x1b[38:5:5m\x1b[48:5:5m
6Teal (SYSTEM)#008080\x1b[38:5:6m\x1b[48:5:6m
7Silver (SYSTEM)#c0c0c0\x1b[38:5:7m\x1b[48:5:7m
8Grey (SYSTEM)#808080\x1b[38:5:8m\x1b[48:5:8m
9Red (SYSTEM)#ff0000\x1b[38:5:9m\x1b[48:5:9m
10Lime (SYSTEM)#00ff00\x1b[38:5:10m\x1b[48:5:10m
11Yellow (SYSTEM)#ffff00\x1b[38:5:11m\x1b[48:5:11m
12Blue (SYSTEM)#0000ff\x1b[38:5:12m\x1b[48:5:12m
13Fuchsia (SYSTEM)#ff00ff\x1b[38:5:13m\x1b[48:5:13m
14Aqua (SYSTEM)#00ffff\x1b[38:5:14m\x1b[48:5:14m
15White (SYSTEM)#ffffff\x1b[38:5:15m\x1b[48:5:15m
16Grey0#000000\x1b[38:5:16m\x1b[48:5:16m
17NavyBlue#00005f\x1b[38:5:17m\x1b[48:5:17m
18DarkBlue#000087\x1b[38:5:18m\x1b[48:5:18m
19Blue3#0000af\x1b[38:5:19m\x1b[48:5:19m
20Blue3#0000d7\x1b[38:5:20m\x1b[48:5:20m
21Blue1#0000ff\x1b[38:5:21m\x1b[48:5:21m
22DarkGreen#005f00\x1b[38:5:22m\x1b[48:5:22m
23DeepSkyBlue4#005f5f\x1b[38:5:23m\x1b[48:5:23m
24DeepSkyBlue4#005f87\x1b[38:5:24m\x1b[48:5:24m
25DeepSkyBlue4#005faf\x1b[38:5:25m\x1b[48:5:25m
26DodgerBlue3#005fd7\x1b[38:5:26m\x1b[48:5:26m
27DodgerBlue2#005fff\x1b[38:5:27m\x1b[48:5:27m
28Green4#008700\x1b[38:5:28m\x1b[48:5:28m
29SpringGreen4#00875f\x1b[38:5:29m\x1b[48:5:29m
30Turquoise4#008787\x1b[38:5:30m\x1b[48:5:30m
31DeepSkyBlue3#0087af\x1b[38:5:31m\x1b[48:5:31m
32DeepSkyBlue3#0087d7\x1b[38:5:32m\x1b[48:5:32m
33DodgerBlue1#0087ff\x1b[38:5:33m\x1b[48:5:33m
34Green3#00af00\x1b[38:5:34m\x1b[48:5:34m
35SpringGreen3#00af5f\x1b[38:5:35m\x1b[48:5:35m
36DarkCyan#00af87\x1b[38:5:36m\x1b[48:5:36m
37LightSeaGreen#00afaf\x1b[38:5:37m\x1b[48:5:37m
38DeepSkyBlue2#00afd7\x1b[38:5:38m\x1b[48:5:38m
39DeepSkyBlue1#00afff\x1b[38:5:39m\x1b[48:5:39m
40Green3#00d700\x1b[38:5:40m\x1b[48:5:40m
41SpringGreen3#00d75f\x1b[38:5:41m\x1b[48:5:41m
42SpringGreen2#00d787\x1b[38:5:42m\x1b[48:5:42m
43Cyan3#00d7af\x1b[38:5:43m\x1b[48:5:43m
44DarkTurquoise#00d7d7\x1b[38:5:44m\x1b[48:5:44m
45Turquoise2#00d7ff\x1b[38:5:45m\x1b[48:5:45m
46Green1#00ff00\x1b[38:5:46m\x1b[48:5:46m
47SpringGreen2#00ff5f\x1b[38:5:47m\x1b[48:5:47m
48SpringGreen1#00ff87\x1b[38:5:48m\x1b[48:5:48m
49MediumSpringGreen#00ffaf\x1b[38:5:49m\x1b[48:5:49m
50Cyan2#00ffd7\x1b[38:5:50m\x1b[48:5:50m
51Cyan1#00ffff\x1b[38:5:51m\x1b[48:5:51m
52DarkRed#5f0000\x1b[38:5:52m\x1b[48:5:52m
53DeepPink4#5f005f\x1b[38:5:53m\x1b[48:5:53m
54Purple4#5f0087\x1b[38:5:54m\x1b[48:5:54m
55Purple4#5f00af\x1b[38:5:55m\x1b[48:5:55m
56Purple3#5f00d7\x1b[38:5:56m\x1b[48:5:56m
57BlueViolet#5f00ff\x1b[38:5:57m\x1b[48:5:57m
58Orange4#5f5f00\x1b[38:5:58m\x1b[48:5:58m
59Grey37#5f5f5f\x1b[38:5:59m\x1b[48:5:59m
60MediumPurple4#5f5f87\x1b[38:5:60m\x1b[48:5:60m
61SlateBlue3#5f5faf\x1b[38:5:61m\x1b[48:5:61m
62SlateBlue3#5f5fd7\x1b[38:5:62m\x1b[48:5:62m
63RoyalBlue1#5f5fff\x1b[38:5:63m\x1b[48:5:63m
64Chartreuse4#5f8700\x1b[38:5:64m\x1b[48:5:64m
65DarkSeaGreen4#5f875f\x1b[38:5:65m\x1b[48:5:65m
66PaleTurquoise4#5f8787\x1b[38:5:66m\x1b[48:5:66m
67SteelBlue#5f87af\x1b[38:5:67m\x1b[48:5:67m
68SteelBlue3#5f87d7\x1b[38:5:68m\x1b[48:5:68m
69CornflowerBlue#5f87ff\x1b[38:5:69m\x1b[48:5:69m
70Chartreuse3#5faf00\x1b[38:5:70m\x1b[48:5:70m
71DarkSeaGreen4#5faf5f\x1b[38:5:71m\x1b[48:5:71m
72CadetBlue#5faf87\x1b[38:5:72m\x1b[48:5:72m
73CadetBlue#5fafaf\x1b[38:5:73m\x1b[48:5:73m
74SkyBlue3#5fafd7\x1b[38:5:74m\x1b[48:5:74m
75SteelBlue1#5fafff\x1b[38:5:75m\x1b[48:5:75m
76Chartreuse3#5fd700\x1b[38:5:76m\x1b[48:5:76m
77PaleGreen3#5fd75f\x1b[38:5:77m\x1b[48:5:77m
78SeaGreen3#5fd787\x1b[38:5:78m\x1b[48:5:78m
79Aquamarine3#5fd7af\x1b[38:5:79m\x1b[48:5:79m
80MediumTurquoise#5fd7d7\x1b[38:5:80m\x1b[48:5:80m
81SteelBlue1#5fd7ff\x1b[38:5:81m\x1b[48:5:81m
82Chartreuse2#5fff00\x1b[38:5:82m\x1b[48:5:82m
83SeaGreen2#5fff5f\x1b[38:5:83m\x1b[48:5:83m
84SeaGreen1#5fff87\x1b[38:5:84m\x1b[48:5:84m
85SeaGreen1#5fffaf\x1b[38:5:85m\x1b[48:5:85m
86Aquamarine1#5fffd7\x1b[38:5:86m\x1b[48:5:86m
87DarkSlateGray2#5fffff\x1b[38:5:87m\x1b[48:5:87m
88DarkRed#870000\x1b[38:5:88m\x1b[48:5:88m
89DeepPink4#87005f\x1b[38:5:89m\x1b[48:5:89m
90DarkMagenta#870087\x1b[38:5:90m\x1b[48:5:90m
91DarkMagenta#8700af\x1b[38:5:91m\x1b[48:5:91m
92DarkViolet#8700d7\x1b[38:5:92m\x1b[48:5:92m
93Purple#8700ff\x1b[38:5:93m\x1b[48:5:93m
94Orange4#875f00\x1b[38:5:94m\x1b[48:5:94m
95LightPink4#875f5f\x1b[38:5:95m\x1b[48:5:95m
96Plum4#875f87\x1b[38:5:96m\x1b[48:5:96m
97MediumPurple3#875faf\x1b[38:5:97m\x1b[48:5:97m
98MediumPurple3#875fd7\x1b[38:5:98m\x1b[48:5:98m
99SlateBlue1#875fff\x1b[38:5:99m\x1b[48:5:99m
100Yellow4#878700\x1b[38:5:100m\x1b[48:5:100m
101Wheat4#87875f\x1b[38:5:101m\x1b[48:5:101m
102Grey53#878787\x1b[38:5:102m\x1b[48:5:102m
103LightSlateGrey#8787af\x1b[38:5:103m\x1b[48:5:103m
104MediumPurple#8787d7\x1b[38:5:104m\x1b[48:5:104m
105LightSlateBlue#8787ff\x1b[38:5:105m\x1b[48:5:105m
106Yellow4#87af00\x1b[38:5:106m\x1b[48:5:106m
107DarkOliveGreen3#87af5f\x1b[38:5:107m\x1b[48:5:107m
108DarkSeaGreen#87af87\x1b[38:5:108m\x1b[48:5:108m
109LightSkyBlue3#87afaf\x1b[38:5:109m\x1b[48:5:109m
110LightSkyBlue3#87afd7\x1b[38:5:110m\x1b[48:5:110m
111SkyBlue2#87afff\x1b[38:5:111m\x1b[48:5:111m
112Chartreuse2#87d700\x1b[38:5:112m\x1b[48:5:112m
113DarkOliveGreen3#87d75f\x1b[38:5:113m\x1b[48:5:113m
114PaleGreen3#87d787\x1b[38:5:114m\x1b[48:5:114m
115DarkSeaGreen3#87d7af\x1b[38:5:115m\x1b[48:5:115m
116DarkSlateGray3#87d7d7\x1b[38:5:116m\x1b[48:5:116m
117SkyBlue1#87d7ff\x1b[38:5:117m\x1b[48:5:117m
118Chartreuse1#87ff00\x1b[38:5:118m\x1b[48:5:118m
119LightGreen#87ff5f\x1b[38:5:119m\x1b[48:5:119m
120LightGreen#87ff87\x1b[38:5:120m\x1b[48:5:120m
121PaleGreen1#87ffaf\x1b[38:5:121m\x1b[48:5:121m
122Aquamarine1#87ffd7\x1b[38:5:122m\x1b[48:5:122m
123DarkSlateGray1#87ffff\x1b[38:5:123m\x1b[48:5:123m
124Red3#af0000\x1b[38:5:124m\x1b[48:5:124m
125DeepPink4#af005f\x1b[38:5:125m\x1b[48:5:125m
126MediumVioletRed#af0087\x1b[38:5:126m\x1b[48:5:126m
127Magenta3#af00af\x1b[38:5:127m\x1b[48:5:127m
128DarkViolet#af00d7\x1b[38:5:128m\x1b[48:5:128m
129Purple#af00ff\x1b[38:5:129m\x1b[48:5:129m
130DarkOrange3#af5f00\x1b[38:5:130m\x1b[48:5:130m
131IndianRed#af5f5f\x1b[38:5:131m\x1b[48:5:131m
132HotPink3#af5f87\x1b[38:5:132m\x1b[48:5:132m
133MediumOrchid3#af5faf\x1b[38:5:133m\x1b[48:5:133m
134MediumOrchid#af5fd7\x1b[38:5:134m\x1b[48:5:134m
135MediumPurple2#af5fff\x1b[38:5:135m\x1b[48:5:135m
136DarkGoldenrod#af8700\x1b[38:5:136m\x1b[48:5:136m
137LightSalmon3#af875f\x1b[38:5:137m\x1b[48:5:137m
138RosyBrown#af8787\x1b[38:5:138m\x1b[48:5:138m
139Grey63#af87af\x1b[38:5:139m\x1b[48:5:139m
140MediumPurple2#af87d7\x1b[38:5:140m\x1b[48:5:140m
141MediumPurple1#af87ff\x1b[38:5:141m\x1b[48:5:141m
142Gold3#afaf00\x1b[38:5:142m\x1b[48:5:142m
143DarkKhaki#afaf5f\x1b[38:5:143m\x1b[48:5:143m
144NavajoWhite3#afaf87\x1b[38:5:144m\x1b[48:5:144m
145Grey69#afafaf\x1b[38:5:145m\x1b[48:5:145m
146LightSteelBlue3#afafd7\x1b[38:5:146m\x1b[48:5:146m
147LightSteelBlue#afafff\x1b[38:5:147m\x1b[48:5:147m
148Yellow3#afd700\x1b[38:5:148m\x1b[48:5:148m
149DarkOliveGreen3#afd75f\x1b[38:5:149m\x1b[48:5:149m
150DarkSeaGreen3#afd787\x1b[38:5:150m\x1b[48:5:150m
151DarkSeaGreen2#afd7af\x1b[38:5:151m\x1b[48:5:151m
152LightCyan3#afd7d7\x1b[38:5:152m\x1b[48:5:152m
153LightSkyBlue1#afd7ff\x1b[38:5:153m\x1b[48:5:153m
154GreenYellow#afff00\x1b[38:5:154m\x1b[48:5:154m
155DarkOliveGreen2#afff5f\x1b[38:5:155m\x1b[48:5:155m
156PaleGreen1#afff87\x1b[38:5:156m\x1b[48:5:156m
157DarkSeaGreen2#afffaf\x1b[38:5:157m\x1b[48:5:157m
158DarkSeaGreen1#afffd7\x1b[38:5:158m\x1b[48:5:158m
159PaleTurquoise1#afffff\x1b[38:5:159m\x1b[48:5:159m
160Red3#d70000\x1b[38:5:160m\x1b[48:5:160m
161DeepPink3#d7005f\x1b[38:5:161m\x1b[48:5:161m
162DeepPink3#d70087\x1b[38:5:162m\x1b[48:5:162m
163Magenta3#d700af\x1b[38:5:163m\x1b[48:5:163m
164Magenta3#d700d7\x1b[38:5:164m\x1b[48:5:164m
165Magenta2#d700ff\x1b[38:5:165m\x1b[48:5:165m
166DarkOrange3#d75f00\x1b[38:5:166m\x1b[48:5:166m
167IndianRed#d75f5f\x1b[38:5:167m\x1b[48:5:167m
168HotPink3#d75f87\x1b[38:5:168m\x1b[48:5:168m
169HotPink2#d75faf\x1b[38:5:169m\x1b[48:5:169m
170Orchid#d75fd7\x1b[38:5:170m\x1b[48:5:170m
171MediumOrchid1#d75fff\x1b[38:5:171m\x1b[48:5:171m
172Orange3#d78700\x1b[38:5:172m\x1b[48:5:172m
173LightSalmon3#d7875f\x1b[38:5:173m\x1b[48:5:173m
174LightPink3#d78787\x1b[38:5:174m\x1b[48:5:174m
175Pink3#d787af\x1b[38:5:175m\x1b[48:5:175m
176Plum3#d787d7\x1b[38:5:176m\x1b[48:5:176m
177Violet#d787ff\x1b[38:5:177m\x1b[48:5:177m
178Gold3#d7af00\x1b[38:5:178m\x1b[48:5:178m
179LightGoldenrod3#d7af5f\x1b[38:5:179m\x1b[48:5:179m
180Tan#d7af87\x1b[38:5:180m\x1b[48:5:180m
181MistyRose3#d7afaf\x1b[38:5:181m\x1b[48:5:181m
182Thistle3#d7afd7\x1b[38:5:182m\x1b[48:5:182m
183Plum2#d7afff\x1b[38:5:183m\x1b[48:5:183m
184Yellow3#d7d700\x1b[38:5:184m\x1b[48:5:184m
185Khaki3#d7d75f\x1b[38:5:185m\x1b[48:5:185m
186LightGoldenrod2#d7d787\x1b[38:5:186m\x1b[48:5:186m
187LightYellow3#d7d7af\x1b[38:5:187m\x1b[48:5:187m
188Grey84#d7d7d7\x1b[38:5:188m\x1b[48:5:188m
189LightSteelBlue1#d7d7ff\x1b[38:5:189m\x1b[48:5:189m
190Yellow2#d7ff00\x1b[38:5:190m\x1b[48:5:190m
191DarkOliveGreen1#d7ff5f\x1b[38:5:191m\x1b[48:5:191m
192DarkOliveGreen1#d7ff87\x1b[38:5:192m\x1b[48:5:192m
193DarkSeaGreen1#d7ffaf\x1b[38:5:193m\x1b[48:5:193m
194Honeydew2#d7ffd7\x1b[38:5:194m\x1b[48:5:194m
195LightCyan1#d7ffff\x1b[38:5:195m\x1b[48:5:195m
196Red1#ff0000\x1b[38:5:196m\x1b[48:5:196m
197DeepPink2#ff005f\x1b[38:5:197m\x1b[48:5:197m
198DeepPink1#ff0087\x1b[38:5:198m\x1b[48:5:198m
199DeepPink1#ff00af\x1b[38:5:199m\x1b[48:5:199m
200Magenta2#ff00d7\x1b[38:5:200m\x1b[48:5:200m
201Magenta1#ff00ff\x1b[38:5:201m\x1b[48:5:201m
202OrangeRed1#ff5f00\x1b[38:5:202m\x1b[48:5:202m
203IndianRed1#ff5f5f\x1b[38:5:203m\x1b[48:5:203m
204IndianRed1#ff5f87\x1b[38:5:204m\x1b[48:5:204m
205HotPink#ff5faf\x1b[38:5:205m\x1b[48:5:205m
206HotPink#ff5fd7\x1b[38:5:206m\x1b[48:5:206m
207MediumOrchid1#ff5fff\x1b[38:5:207m\x1b[48:5:207m
208DarkOrange#ff8700\x1b[38:5:208m\x1b[48:5:208m
209Salmon1#ff875f\x1b[38:5:209m\x1b[48:5:209m
210LightCoral#ff8787\x1b[38:5:210m\x1b[48:5:210m
211PaleVioletRed1#ff87af\x1b[38:5:211m\x1b[48:5:211m
212Orchid2#ff87d7\x1b[38:5:212m\x1b[48:5:212m
213Orchid1#ff87ff\x1b[38:5:213m\x1b[48:5:213m
214Orange1#ffaf00\x1b[38:5:214m\x1b[48:5:214m
215SandyBrown#ffaf5f\x1b[38:5:215m\x1b[48:5:215m
216LightSalmon1#ffaf87\x1b[38:5:216m\x1b[48:5:216m
217LightPink1#ffafaf\x1b[38:5:217m\x1b[48:5:217m
218Pink1#ffafd7\x1b[38:5:218m\x1b[48:5:218m
219Plum1#ffafff\x1b[38:5:219m\x1b[48:5:219m
220Gold1#ffd700\x1b[38:5:220m\x1b[48:5:220m
221LightGoldenrod2#ffd75f\x1b[38:5:221m\x1b[48:5:221m
222LightGoldenrod2#ffd787\x1b[38:5:222m\x1b[48:5:222m
223NavajoWhite1#ffd7af\x1b[38:5:223m\x1b[48:5:223m
224MistyRose1#ffd7d7\x1b[38:5:224m\x1b[48:5:224m
225Thistle1#ffd7ff\x1b[38:5:225m\x1b[48:5:225m
226Yellow1#ffff00\x1b[38:5:226m\x1b[48:5:226m
227LightGoldenrod1#ffff5f\x1b[38:5:227m\x1b[48:5:227m
228Khaki1#ffff87\x1b[38:5:228m\x1b[48:5:228m
229Wheat1#ffffaf\x1b[38:5:229m\x1b[48:5:229m
230Cornsilk1#ffffd7\x1b[38:5:230m\x1b[48:5:230m
231Grey100#ffffff\x1b[38:5:231m\x1b[48:5:231m
232Grey3#080808\x1b[38:5:232m\x1b[48:5:232m
233Grey7#121212\x1b[38:5:233m\x1b[48:5:233m
234Grey11#1c1c1c\x1b[38:5:234m\x1b[48:5:234m
235Grey15#262626\x1b[38:5:235m\x1b[48:5:235m
236Grey19#303030\x1b[38:5:236m\x1b[48:5:236m
237Grey23#3a3a3a\x1b[38:5:237m\x1b[48:5:237m
238Grey27#444444\x1b[38:5:238m\x1b[48:5:238m
239Grey30#4e4e4e\x1b[38:5:239m\x1b[48:5:239m
240Grey35#585858\x1b[38:5:240m\x1b[48:5:240m
241Grey39#626262\x1b[38:5:241m\x1b[48:5:241m
242Grey42#6c6c6c\x1b[38:5:242m\x1b[48:5:242m
243Grey46#767676\x1b[38:5:243m\x1b[48:5:243m
244Grey50#808080\x1b[38:5:244m\x1b[48:5:244m
245Grey54#8a8a8a\x1b[38:5:245m\x1b[48:5:245m
246Grey58#949494\x1b[38:5:246m\x1b[48:5:246m
247Grey62#9e9e9e\x1b[38:5:247m\x1b[48:5:247m
248Grey66#a8a8a8\x1b[38:5:248m\x1b[48:5:248m
249Grey70#b2b2b2\x1b[38:5:249m\x1b[48:5:249m
250Grey74#bcbcbc\x1b[38:5:250m\x1b[48:5:250m
251Grey78#c6c6c6\x1b[38:5:251m\x1b[48:5:251m
252Grey82#d0d0d0\x1b[38:5:252m\x1b[48:5:252m
253Grey85#dadada\x1b[38:5:253m\x1b[48:5:253m
254Grey89#e4e4e4\x1b[38:5:254m\x1b[48:5:254m
255Grey93#eeeeee\x1b[38:5:255m\x1b[48:5:255m

You can use the following command (in bash) for testing:

echo -e "\x1b[38:5:1mtext\x1b[0m"

True Color Escape Codes

Terminal true color uses the following escape codes:

  • foreground color: \x1b[38;2;${red};${green};${blue}m
  • background color: \x1b[48;2;${red};${green};${blue}m

You can use the following command (in bash) for testing:

echo -e "\x1b[38;2;255;0;0mtext\x1b[0m"

Note that true color is not supported by all terminals. Only a few supports it, e.g., iterm2 on mac, mintty on Windows, xterm on Linux.

Color Reset

To reset the color settings to default, use \x1b[0m.

Terminal Capabilities

Although there are a lot of escape codes defined in the xterm standard, your terminal doesn’t necessarily support them all. To check what capabilities your terminal supports, use the following command.

swe@ubuntu-server:~$ infocmp
#       Reconstructed via infocmp from file: /lib/terminfo/x/xterm-256color
xterm-256color|xterm with 256 colors,
        am, bce, ccc, km, mc5i, mir, msgr, npc, xenl,
        colors#0x100, cols#80, it#8, lines#24, pairs#0x10000,
        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
        clear=\E[H\E[2J, cnorm=\E[?12l\E[?25h, cr=\r,
        csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
        cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
        cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
        dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
        el1=\E[1K, flash=\E[?5h$<100/>\E[?5l, home=\E[H,
        hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
        il=\E[%p1%dL, il1=\E[L, ind=\n, indn=\E[%p1%dS,
        initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
        invis=\E[8m, is2=\E[!p\E[?3;4l\E[4l\E>, kDC=\E[3;2~,
        kEND=\E[1;2F, kHOM=\E[1;2H, kIC=\E[2;2~, kLFT=\E[1;2D,
        kNXT=\E[6;2~, kPRV=\E[5;2~, kRIT=\E[1;2C, kb2=\EOE, kbs=^?,
        kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
        kdch1=\E[3~, kend=\EOF, kent=\EOM, kf1=\EOP, kf10=\E[21~,
        kf11=\E[23~, kf12=\E[24~, kf13=\E[1;2P, kf14=\E[1;2Q,
        kf15=\E[1;2R, kf16=\E[1;2S, kf17=\E[15;2~, kf18=\E[17;2~,
        kf19=\E[18;2~, kf2=\EOQ, kf20=\E[19;2~, kf21=\E[20;2~,
        kf22=\E[21;2~, kf23=\E[23;2~, kf24=\E[24;2~,
        kf25=\E[1;5P, kf26=\E[1;5Q, kf27=\E[1;5R, kf28=\E[1;5S,
        kf29=\E[15;5~, kf3=\EOR, kf30=\E[17;5~, kf31=\E[18;5~,
        kf32=\E[19;5~, kf33=\E[20;5~, kf34=\E[21;5~,
        kf35=\E[23;5~, kf36=\E[24;5~, kf37=\E[1;6P, kf38=\E[1;6Q,
        kf39=\E[1;6R, kf4=\EOS, kf40=\E[1;6S, kf41=\E[15;6~,
        kf42=\E[17;6~, kf43=\E[18;6~, kf44=\E[19;6~,
        kf45=\E[20;6~, kf46=\E[21;6~, kf47=\E[23;6~,
        kf48=\E[24;6~, kf49=\E[1;3P, kf5=\E[15~, kf50=\E[1;3Q,
        kf51=\E[1;3R, kf52=\E[1;3S, kf53=\E[15;3~, kf54=\E[17;3~,
        kf55=\E[18;3~, kf56=\E[19;3~, kf57=\E[20;3~,
        kf58=\E[21;3~, kf59=\E[23;3~, kf6=\E[17~, kf60=\E[24;3~,
        kf61=\E[1;4P, kf62=\E[1;4Q, kf63=\E[1;4R, kf7=\E[18~,
        kf8=\E[19~, kf9=\E[20~, khome=\EOH, kich1=\E[2~,
        kind=\E[1;2B, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
        kri=\E[1;2A, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, meml=\El,
        memu=\Em, oc=\E]104\007, op=\E[39;49m, rc=\E8, rev=\E[7m,
        ri=\EM, rin=\E[%p1%dT, ritm=\E[23m, rmacs=\E(B,
        rmam=\E[?7l, rmcup=\E[?1049l\E[23;0;0t, rmir=\E[4l,
        rmkx=\E[?1l\E>, rmm=\E[?1034l, rmso=\E[27m, rmul=\E[24m,
        rs1=\Ec\E]104\007, rs2=\E[!p\E[?3;4l\E[4l\E>, sc=\E7,
        setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
        setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
        sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
        sgr0=\E(B\E[m, sitm=\E[3m, smacs=\E(0, smam=\E[?7h,
        smcup=\E[?1049h\E[22;0;0t, smir=\E[4h, smkx=\E[?1h\E=,
        smm=\E[?1034h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
        u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?%[;0123456789]c,
        u9=\E[c, vpa=\E[%i%p1%dd,
swe@ubuntu-server:~$