1
2
3 package xterm_termite
4
5 import "github.com/gdamore/tcell/v2/terminfo"
6
7 func init() {
8
9
10 terminfo.AddTerminfo(&terminfo.Terminfo{
11 Name: "xterm-termite",
12 Columns: 80,
13 Lines: 24,
14 Colors: 256,
15 Bell: "\a",
16 Clear: "\x1b[H\x1b[2J",
17 EnterCA: "\x1b[?1049h",
18 ExitCA: "\x1b[?1049l",
19 ShowCursor: "\x1b[?12l\x1b[?25h",
20 HideCursor: "\x1b[?25l",
21 AttrOff: "\x1b(B\x1b[m",
22 Underline: "\x1b[4m",
23 Bold: "\x1b[1m",
24 Dim: "\x1b[2m",
25 Italic: "\x1b[3m",
26 Reverse: "\x1b[7m",
27 EnterKeypad: "\x1b[?1h\x1b=",
28 ExitKeypad: "\x1b[?1l\x1b>",
29 SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m",
30 SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m",
31 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",
32 ResetFgBg: "\x1b[39;49m",
33 AltChars: "++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
34 EnterAcs: "\x1b(0",
35 ExitAcs: "\x1b(B",
36 Mouse: "\x1b[M",
37 SetCursor: "\x1b[%i%p1%d;%p2%dH",
38 CursorBack1: "\b",
39 CursorUp1: "\x1b[A",
40 KeyUp: "\x1bOA",
41 KeyDown: "\x1bOB",
42 KeyRight: "\x1bOC",
43 KeyLeft: "\x1bOD",
44 KeyInsert: "\x1b[2~",
45 KeyDelete: "\x1b[3~",
46 KeyBackspace: "\u007f",
47 KeyHome: "\x1bOH",
48 KeyEnd: "\x1bOF",
49 KeyPgUp: "\x1b[5~",
50 KeyPgDn: "\x1b[6~",
51 KeyF1: "\x1bOP",
52 KeyF2: "\x1bOQ",
53 KeyF3: "\x1bOR",
54 KeyF4: "\x1bOS",
55 KeyF5: "\x1b[15~",
56 KeyF6: "\x1b[17~",
57 KeyF7: "\x1b[18~",
58 KeyF8: "\x1b[19~",
59 KeyF9: "\x1b[20~",
60 KeyF10: "\x1b[21~",
61 KeyF11: "\x1b[23~",
62 KeyF12: "\x1b[24~",
63 KeyBacktab: "\x1b[Z",
64 Modifiers: 1,
65 })
66 }
67
View as plain text