1
2
3 package rxvt
4
5 import "github.com/gdamore/tcell/v2/terminfo"
6
7 func init() {
8
9
10 terminfo.AddTerminfo(&terminfo.Terminfo{
11 Name: "rxvt",
12 Columns: 80,
13 Lines: 24,
14 Colors: 8,
15 Bell: "\a",
16 Clear: "\x1b[H\x1b[2J",
17 EnterCA: "\x1b7\x1b[?47h",
18 ExitCA: "\x1b[2J\x1b[?47l\x1b8",
19 ShowCursor: "\x1b[?25h",
20 HideCursor: "\x1b[?25l",
21 AttrOff: "\x1b[m\x0f",
22 Underline: "\x1b[4m",
23 Bold: "\x1b[1m",
24 Blink: "\x1b[5m",
25 Reverse: "\x1b[7m",
26 EnterKeypad: "\x1b=",
27 ExitKeypad: "\x1b>",
28 SetFg: "\x1b[3%p1%dm",
29 SetBg: "\x1b[4%p1%dm",
30 SetFgBg: "\x1b[3%p1%d;4%p2%dm",
31 ResetFgBg: "\x1b[39;49m",
32 PadChar: "\x00",
33 AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
34 EnterAcs: "\x0e",
35 ExitAcs: "\x0f",
36 EnableAcs: "\x1b(B\x1b)0",
37 Mouse: "\x1b[M",
38 SetCursor: "\x1b[%i%p1%d;%p2%dH",
39 CursorBack1: "\b",
40 CursorUp1: "\x1b[A",
41 KeyUp: "\x1b[A",
42 KeyDown: "\x1b[B",
43 KeyRight: "\x1b[C",
44 KeyLeft: "\x1b[D",
45 KeyInsert: "\x1b[2~",
46 KeyDelete: "\x1b[3~",
47 KeyBackspace: "\u007f",
48 KeyHome: "\x1b[7~",
49 KeyEnd: "\x1b[8~",
50 KeyPgUp: "\x1b[5~",
51 KeyPgDn: "\x1b[6~",
52 KeyF1: "\x1b[11~",
53 KeyF2: "\x1b[12~",
54 KeyF3: "\x1b[13~",
55 KeyF4: "\x1b[14~",
56 KeyF5: "\x1b[15~",
57 KeyF6: "\x1b[17~",
58 KeyF7: "\x1b[18~",
59 KeyF8: "\x1b[19~",
60 KeyF9: "\x1b[20~",
61 KeyF10: "\x1b[21~",
62 KeyF11: "\x1b[23~",
63 KeyF12: "\x1b[24~",
64 KeyF13: "\x1b[25~",
65 KeyF14: "\x1b[26~",
66 KeyF15: "\x1b[28~",
67 KeyF16: "\x1b[29~",
68 KeyF17: "\x1b[31~",
69 KeyF18: "\x1b[32~",
70 KeyF19: "\x1b[33~",
71 KeyF20: "\x1b[34~",
72 KeyF21: "\x1b[23$",
73 KeyF22: "\x1b[24$",
74 KeyF23: "\x1b[11^",
75 KeyF24: "\x1b[12^",
76 KeyF25: "\x1b[13^",
77 KeyF26: "\x1b[14^",
78 KeyF27: "\x1b[15^",
79 KeyF28: "\x1b[17^",
80 KeyF29: "\x1b[18^",
81 KeyF30: "\x1b[19^",
82 KeyF31: "\x1b[20^",
83 KeyF32: "\x1b[21^",
84 KeyF33: "\x1b[23^",
85 KeyF34: "\x1b[24^",
86 KeyF35: "\x1b[25^",
87 KeyF36: "\x1b[26^",
88 KeyF37: "\x1b[28^",
89 KeyF38: "\x1b[29^",
90 KeyF39: "\x1b[31^",
91 KeyF40: "\x1b[32^",
92 KeyF41: "\x1b[33^",
93 KeyF42: "\x1b[34^",
94 KeyF43: "\x1b[23@",
95 KeyF44: "\x1b[24@",
96 KeyBacktab: "\x1b[Z",
97 KeyShfLeft: "\x1b[d",
98 KeyShfRight: "\x1b[c",
99 KeyShfUp: "\x1b[a",
100 KeyShfDown: "\x1b[b",
101 KeyShfHome: "\x1b[7$",
102 KeyShfEnd: "\x1b[8$",
103 KeyShfDelete: "\x1b[3$",
104 KeyCtrlUp: "\x1b[Oa",
105 KeyCtrlDown: "\x1b[Ob",
106 KeyCtrlRight: "\x1b[Oc",
107 KeyCtrlLeft: "\x1b[Od",
108 KeyCtrlHome: "\x1b[7^",
109 KeyCtrlEnd: "\x1b[8^",
110 AutoMargin: true,
111 InsertChar: "\x1b[@",
112 })
113
114
115 terminfo.AddTerminfo(&terminfo.Terminfo{
116 Name: "rxvt-256color",
117 Columns: 80,
118 Lines: 24,
119 Colors: 256,
120 Bell: "\a",
121 Clear: "\x1b[H\x1b[2J",
122 EnterCA: "\x1b7\x1b[?47h",
123 ExitCA: "\x1b[2J\x1b[?47l\x1b8",
124 ShowCursor: "\x1b[?25h",
125 HideCursor: "\x1b[?25l",
126 AttrOff: "\x1b[m\x0f",
127 Underline: "\x1b[4m",
128 Bold: "\x1b[1m",
129 Blink: "\x1b[5m",
130 Reverse: "\x1b[7m",
131 EnterKeypad: "\x1b=",
132 ExitKeypad: "\x1b>",
133 SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m",
134 SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m",
135 SetFgBg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m",
136 ResetFgBg: "\x1b[39;49m",
137 PadChar: "\x00",
138 AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
139 EnterAcs: "\x0e",
140 ExitAcs: "\x0f",
141 EnableAcs: "\x1b(B\x1b)0",
142 Mouse: "\x1b[M",
143 SetCursor: "\x1b[%i%p1%d;%p2%dH",
144 CursorBack1: "\b",
145 CursorUp1: "\x1b[A",
146 KeyUp: "\x1b[A",
147 KeyDown: "\x1b[B",
148 KeyRight: "\x1b[C",
149 KeyLeft: "\x1b[D",
150 KeyInsert: "\x1b[2~",
151 KeyDelete: "\x1b[3~",
152 KeyBackspace: "\u007f",
153 KeyHome: "\x1b[7~",
154 KeyEnd: "\x1b[8~",
155 KeyPgUp: "\x1b[5~",
156 KeyPgDn: "\x1b[6~",
157 KeyF1: "\x1b[11~",
158 KeyF2: "\x1b[12~",
159 KeyF3: "\x1b[13~",
160 KeyF4: "\x1b[14~",
161 KeyF5: "\x1b[15~",
162 KeyF6: "\x1b[17~",
163 KeyF7: "\x1b[18~",
164 KeyF8: "\x1b[19~",
165 KeyF9: "\x1b[20~",
166 KeyF10: "\x1b[21~",
167 KeyF11: "\x1b[23~",
168 KeyF12: "\x1b[24~",
169 KeyF13: "\x1b[25~",
170 KeyF14: "\x1b[26~",
171 KeyF15: "\x1b[28~",
172 KeyF16: "\x1b[29~",
173 KeyF17: "\x1b[31~",
174 KeyF18: "\x1b[32~",
175 KeyF19: "\x1b[33~",
176 KeyF20: "\x1b[34~",
177 KeyF21: "\x1b[23$",
178 KeyF22: "\x1b[24$",
179 KeyF23: "\x1b[11^",
180 KeyF24: "\x1b[12^",
181 KeyF25: "\x1b[13^",
182 KeyF26: "\x1b[14^",
183 KeyF27: "\x1b[15^",
184 KeyF28: "\x1b[17^",
185 KeyF29: "\x1b[18^",
186 KeyF30: "\x1b[19^",
187 KeyF31: "\x1b[20^",
188 KeyF32: "\x1b[21^",
189 KeyF33: "\x1b[23^",
190 KeyF34: "\x1b[24^",
191 KeyF35: "\x1b[25^",
192 KeyF36: "\x1b[26^",
193 KeyF37: "\x1b[28^",
194 KeyF38: "\x1b[29^",
195 KeyF39: "\x1b[31^",
196 KeyF40: "\x1b[32^",
197 KeyF41: "\x1b[33^",
198 KeyF42: "\x1b[34^",
199 KeyF43: "\x1b[23@",
200 KeyF44: "\x1b[24@",
201 KeyBacktab: "\x1b[Z",
202 KeyShfLeft: "\x1b[d",
203 KeyShfRight: "\x1b[c",
204 KeyShfUp: "\x1b[a",
205 KeyShfDown: "\x1b[b",
206 KeyShfHome: "\x1b[7$",
207 KeyShfEnd: "\x1b[8$",
208 KeyShfDelete: "\x1b[3$",
209 KeyCtrlUp: "\x1b[Oa",
210 KeyCtrlDown: "\x1b[Ob",
211 KeyCtrlRight: "\x1b[Oc",
212 KeyCtrlLeft: "\x1b[Od",
213 KeyCtrlHome: "\x1b[7^",
214 KeyCtrlEnd: "\x1b[8^",
215 AutoMargin: true,
216 InsertChar: "\x1b[@",
217 })
218
219
220 terminfo.AddTerminfo(&terminfo.Terminfo{
221 Name: "rxvt-88color",
222 Columns: 80,
223 Lines: 24,
224 Colors: 88,
225 Bell: "\a",
226 Clear: "\x1b[H\x1b[2J",
227 EnterCA: "\x1b7\x1b[?47h",
228 ExitCA: "\x1b[2J\x1b[?47l\x1b8",
229 ShowCursor: "\x1b[?25h",
230 HideCursor: "\x1b[?25l",
231 AttrOff: "\x1b[m\x0f",
232 Underline: "\x1b[4m",
233 Bold: "\x1b[1m",
234 Blink: "\x1b[5m",
235 Reverse: "\x1b[7m",
236 EnterKeypad: "\x1b=",
237 ExitKeypad: "\x1b>",
238 SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m",
239 SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m",
240 SetFgBg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m",
241 ResetFgBg: "\x1b[39;49m",
242 PadChar: "\x00",
243 AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
244 EnterAcs: "\x0e",
245 ExitAcs: "\x0f",
246 EnableAcs: "\x1b(B\x1b)0",
247 Mouse: "\x1b[M",
248 SetCursor: "\x1b[%i%p1%d;%p2%dH",
249 CursorBack1: "\b",
250 CursorUp1: "\x1b[A",
251 KeyUp: "\x1b[A",
252 KeyDown: "\x1b[B",
253 KeyRight: "\x1b[C",
254 KeyLeft: "\x1b[D",
255 KeyInsert: "\x1b[2~",
256 KeyDelete: "\x1b[3~",
257 KeyBackspace: "\u007f",
258 KeyHome: "\x1b[7~",
259 KeyEnd: "\x1b[8~",
260 KeyPgUp: "\x1b[5~",
261 KeyPgDn: "\x1b[6~",
262 KeyF1: "\x1b[11~",
263 KeyF2: "\x1b[12~",
264 KeyF3: "\x1b[13~",
265 KeyF4: "\x1b[14~",
266 KeyF5: "\x1b[15~",
267 KeyF6: "\x1b[17~",
268 KeyF7: "\x1b[18~",
269 KeyF8: "\x1b[19~",
270 KeyF9: "\x1b[20~",
271 KeyF10: "\x1b[21~",
272 KeyF11: "\x1b[23~",
273 KeyF12: "\x1b[24~",
274 KeyF13: "\x1b[25~",
275 KeyF14: "\x1b[26~",
276 KeyF15: "\x1b[28~",
277 KeyF16: "\x1b[29~",
278 KeyF17: "\x1b[31~",
279 KeyF18: "\x1b[32~",
280 KeyF19: "\x1b[33~",
281 KeyF20: "\x1b[34~",
282 KeyF21: "\x1b[23$",
283 KeyF22: "\x1b[24$",
284 KeyF23: "\x1b[11^",
285 KeyF24: "\x1b[12^",
286 KeyF25: "\x1b[13^",
287 KeyF26: "\x1b[14^",
288 KeyF27: "\x1b[15^",
289 KeyF28: "\x1b[17^",
290 KeyF29: "\x1b[18^",
291 KeyF30: "\x1b[19^",
292 KeyF31: "\x1b[20^",
293 KeyF32: "\x1b[21^",
294 KeyF33: "\x1b[23^",
295 KeyF34: "\x1b[24^",
296 KeyF35: "\x1b[25^",
297 KeyF36: "\x1b[26^",
298 KeyF37: "\x1b[28^",
299 KeyF38: "\x1b[29^",
300 KeyF39: "\x1b[31^",
301 KeyF40: "\x1b[32^",
302 KeyF41: "\x1b[33^",
303 KeyF42: "\x1b[34^",
304 KeyF43: "\x1b[23@",
305 KeyF44: "\x1b[24@",
306 KeyBacktab: "\x1b[Z",
307 KeyShfLeft: "\x1b[d",
308 KeyShfRight: "\x1b[c",
309 KeyShfUp: "\x1b[a",
310 KeyShfDown: "\x1b[b",
311 KeyShfHome: "\x1b[7$",
312 KeyShfEnd: "\x1b[8$",
313 KeyShfDelete: "\x1b[3$",
314 KeyCtrlUp: "\x1b[Oa",
315 KeyCtrlDown: "\x1b[Ob",
316 KeyCtrlRight: "\x1b[Oc",
317 KeyCtrlLeft: "\x1b[Od",
318 KeyCtrlHome: "\x1b[7^",
319 KeyCtrlEnd: "\x1b[8^",
320 AutoMargin: true,
321 InsertChar: "\x1b[@",
322 })
323
324
325 terminfo.AddTerminfo(&terminfo.Terminfo{
326 Name: "rxvt-unicode",
327 Columns: 80,
328 Lines: 24,
329 Colors: 88,
330 Bell: "\a",
331 Clear: "\x1b[H\x1b[2J",
332 EnterCA: "\x1b[?1049h",
333 ExitCA: "\x1b[r\x1b[?1049l",
334 ShowCursor: "\x1b[?12l\x1b[?25h",
335 HideCursor: "\x1b[?25l",
336 AttrOff: "\x1b[m\x1b(B",
337 Underline: "\x1b[4m",
338 Bold: "\x1b[1m",
339 Italic: "\x1b[3m",
340 Blink: "\x1b[5m",
341 Reverse: "\x1b[7m",
342 EnterKeypad: "\x1b=",
343 ExitKeypad: "\x1b>",
344 SetFg: "\x1b[38;5;%p1%dm",
345 SetBg: "\x1b[48;5;%p1%dm",
346 SetFgBg: "\x1b[38;5;%p1%d;48;5;%p2%dm",
347 ResetFgBg: "\x1b[39;49m",
348 AltChars: "+C,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
349 EnterAcs: "\x1b(0",
350 ExitAcs: "\x1b(B",
351 Mouse: "\x1b[M",
352 SetCursor: "\x1b[%i%p1%d;%p2%dH",
353 CursorBack1: "\b",
354 CursorUp1: "\x1b[A",
355 KeyUp: "\x1b[A",
356 KeyDown: "\x1b[B",
357 KeyRight: "\x1b[C",
358 KeyLeft: "\x1b[D",
359 KeyInsert: "\x1b[2~",
360 KeyDelete: "\x1b[3~",
361 KeyBackspace: "\u007f",
362 KeyHome: "\x1b[7~",
363 KeyEnd: "\x1b[8~",
364 KeyPgUp: "\x1b[5~",
365 KeyPgDn: "\x1b[6~",
366 KeyF1: "\x1b[11~",
367 KeyF2: "\x1b[12~",
368 KeyF3: "\x1b[13~",
369 KeyF4: "\x1b[14~",
370 KeyF5: "\x1b[15~",
371 KeyF6: "\x1b[17~",
372 KeyF7: "\x1b[18~",
373 KeyF8: "\x1b[19~",
374 KeyF9: "\x1b[20~",
375 KeyF10: "\x1b[21~",
376 KeyF11: "\x1b[23~",
377 KeyF12: "\x1b[24~",
378 KeyF13: "\x1b[25~",
379 KeyF14: "\x1b[26~",
380 KeyF15: "\x1b[28~",
381 KeyF16: "\x1b[29~",
382 KeyF17: "\x1b[31~",
383 KeyF18: "\x1b[32~",
384 KeyF19: "\x1b[33~",
385 KeyF20: "\x1b[34~",
386 KeyBacktab: "\x1b[Z",
387 KeyShfLeft: "\x1b[d",
388 KeyShfRight: "\x1b[c",
389 KeyShfUp: "\x1b[a",
390 KeyShfDown: "\x1b[b",
391 KeyShfHome: "\x1b[7$",
392 KeyShfEnd: "\x1b[8$",
393 KeyShfInsert: "\x1b[2$",
394 KeyShfDelete: "\x1b[3$",
395 KeyCtrlUp: "\x1b[Oa",
396 KeyCtrlDown: "\x1b[Ob",
397 KeyCtrlRight: "\x1b[Oc",
398 KeyCtrlLeft: "\x1b[Od",
399 KeyCtrlHome: "\x1b[7^",
400 KeyCtrlEnd: "\x1b[8^",
401 AutoMargin: true,
402 InsertChar: "\x1b[@",
403 })
404
405
406 terminfo.AddTerminfo(&terminfo.Terminfo{
407 Name: "rxvt-unicode-256color",
408 Columns: 80,
409 Lines: 24,
410 Colors: 256,
411 Bell: "\a",
412 Clear: "\x1b[H\x1b[2J",
413 EnterCA: "\x1b[?1049h",
414 ExitCA: "\x1b[r\x1b[?1049l",
415 ShowCursor: "\x1b[?12l\x1b[?25h",
416 HideCursor: "\x1b[?25l",
417 AttrOff: "\x1b[m\x1b(B",
418 Underline: "\x1b[4m",
419 Bold: "\x1b[1m",
420 Italic: "\x1b[3m",
421 Blink: "\x1b[5m",
422 Reverse: "\x1b[7m",
423 EnterKeypad: "\x1b=",
424 ExitKeypad: "\x1b>",
425 SetFg: "\x1b[38;5;%p1%dm",
426 SetBg: "\x1b[48;5;%p1%dm",
427 SetFgBg: "\x1b[38;5;%p1%d;48;5;%p2%dm",
428 ResetFgBg: "\x1b[39;49m",
429 AltChars: "+C,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
430 EnterAcs: "\x1b(0",
431 ExitAcs: "\x1b(B",
432 Mouse: "\x1b[M",
433 SetCursor: "\x1b[%i%p1%d;%p2%dH",
434 CursorBack1: "\b",
435 CursorUp1: "\x1b[A",
436 KeyUp: "\x1b[A",
437 KeyDown: "\x1b[B",
438 KeyRight: "\x1b[C",
439 KeyLeft: "\x1b[D",
440 KeyInsert: "\x1b[2~",
441 KeyDelete: "\x1b[3~",
442 KeyBackspace: "\u007f",
443 KeyHome: "\x1b[7~",
444 KeyEnd: "\x1b[8~",
445 KeyPgUp: "\x1b[5~",
446 KeyPgDn: "\x1b[6~",
447 KeyF1: "\x1b[11~",
448 KeyF2: "\x1b[12~",
449 KeyF3: "\x1b[13~",
450 KeyF4: "\x1b[14~",
451 KeyF5: "\x1b[15~",
452 KeyF6: "\x1b[17~",
453 KeyF7: "\x1b[18~",
454 KeyF8: "\x1b[19~",
455 KeyF9: "\x1b[20~",
456 KeyF10: "\x1b[21~",
457 KeyF11: "\x1b[23~",
458 KeyF12: "\x1b[24~",
459 KeyF13: "\x1b[25~",
460 KeyF14: "\x1b[26~",
461 KeyF15: "\x1b[28~",
462 KeyF16: "\x1b[29~",
463 KeyF17: "\x1b[31~",
464 KeyF18: "\x1b[32~",
465 KeyF19: "\x1b[33~",
466 KeyF20: "\x1b[34~",
467 KeyBacktab: "\x1b[Z",
468 KeyShfLeft: "\x1b[d",
469 KeyShfRight: "\x1b[c",
470 KeyShfUp: "\x1b[a",
471 KeyShfDown: "\x1b[b",
472 KeyShfHome: "\x1b[7$",
473 KeyShfEnd: "\x1b[8$",
474 KeyShfInsert: "\x1b[2$",
475 KeyShfDelete: "\x1b[3$",
476 KeyCtrlUp: "\x1b[Oa",
477 KeyCtrlDown: "\x1b[Ob",
478 KeyCtrlRight: "\x1b[Oc",
479 KeyCtrlLeft: "\x1b[Od",
480 KeyCtrlHome: "\x1b[7^",
481 KeyCtrlEnd: "\x1b[8^",
482 AutoMargin: true,
483 InsertChar: "\x1b[@",
484 })
485 }
486
View as plain text