1
2
3 package tmux
4
5 import "github.com/gdamore/tcell/v2/terminfo"
6
7 func init() {
8
9
10 terminfo.AddTerminfo(&terminfo.Terminfo{
11 Name: "tmux",
12 Columns: 80,
13 Lines: 24,
14 Colors: 8,
15 Bell: "\a",
16 Clear: "\x1b[H\x1b[J",
17 EnterCA: "\x1b[?1049h",
18 ExitCA: "\x1b[?1049l",
19 ShowCursor: "\x1b[34h\x1b[?25h",
20 HideCursor: "\x1b[?25l",
21 AttrOff: "\x1b[m\x0f",
22 Underline: "\x1b[4m",
23 Bold: "\x1b[1m",
24 Dim: "\x1b[2m",
25 Italic: "\x1b[3m",
26 Blink: "\x1b[5m",
27 Reverse: "\x1b[7m",
28 EnterKeypad: "\x1b[?1h\x1b=",
29 ExitKeypad: "\x1b[?1l\x1b>",
30 SetFg: "\x1b[3%p1%dm",
31 SetBg: "\x1b[4%p1%dm",
32 SetFgBg: "\x1b[3%p1%d;4%p2%dm",
33 ResetFgBg: "\x1b[39;49m",
34 PadChar: "\x00",
35 AltChars: "++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
36 EnterAcs: "\x0e",
37 ExitAcs: "\x0f",
38 EnableAcs: "\x1b(B\x1b)0",
39 StrikeThrough: "\x1b[9m",
40 Mouse: "\x1b[M",
41 SetCursor: "\x1b[%i%p1%d;%p2%dH",
42 CursorBack1: "\b",
43 CursorUp1: "\x1bM",
44 KeyUp: "\x1bOA",
45 KeyDown: "\x1bOB",
46 KeyRight: "\x1bOC",
47 KeyLeft: "\x1bOD",
48 KeyInsert: "\x1b[2~",
49 KeyDelete: "\x1b[3~",
50 KeyBackspace: "\u007f",
51 KeyHome: "\x1b[1~",
52 KeyEnd: "\x1b[4~",
53 KeyPgUp: "\x1b[5~",
54 KeyPgDn: "\x1b[6~",
55 KeyF1: "\x1bOP",
56 KeyF2: "\x1bOQ",
57 KeyF3: "\x1bOR",
58 KeyF4: "\x1bOS",
59 KeyF5: "\x1b[15~",
60 KeyF6: "\x1b[17~",
61 KeyF7: "\x1b[18~",
62 KeyF8: "\x1b[19~",
63 KeyF9: "\x1b[20~",
64 KeyF10: "\x1b[21~",
65 KeyF11: "\x1b[23~",
66 KeyF12: "\x1b[24~",
67 KeyBacktab: "\x1b[Z",
68 Modifiers: 1,
69 AutoMargin: true,
70 })
71 terminfo.AddTerminfo(&terminfo.Terminfo{
72 Name: "tmux-256color",
73 Columns: 80,
74 Lines: 24,
75 Colors: 256,
76 Bell: "\a",
77 Clear: "\x1b[H\x1b[J",
78 EnterCA: "\x1b[?1049h",
79 ExitCA: "\x1b[?1049l",
80 ShowCursor: "\x1b[34h\x1b[?25h",
81 HideCursor: "\x1b[?25l",
82 AttrOff: "\x1b[m\x0f",
83 Underline: "\x1b[4m",
84 Bold: "\x1b[1m",
85 Dim: "\x1b[2m",
86 Italic: "\x1b[3m",
87 Blink: "\x1b[5m",
88 Reverse: "\x1b[7m",
89 EnterKeypad: "\x1b[?1h\x1b=",
90 ExitKeypad: "\x1b[?1l\x1b>",
91 SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m",
92 SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m",
93 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",
94 ResetFgBg: "\x1b[39;49m",
95 PadChar: "\x00",
96 AltChars: "++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
97 EnterAcs: "\x0e",
98 ExitAcs: "\x0f",
99 EnableAcs: "\x1b(B\x1b)0",
100 StrikeThrough: "\x1b[9m",
101 Mouse: "\x1b[M",
102 SetCursor: "\x1b[%i%p1%d;%p2%dH",
103 CursorBack1: "\b",
104 CursorUp1: "\x1bM",
105 KeyUp: "\x1bOA",
106 KeyDown: "\x1bOB",
107 KeyRight: "\x1bOC",
108 KeyLeft: "\x1bOD",
109 KeyInsert: "\x1b[2~",
110 KeyDelete: "\x1b[3~",
111 KeyBackspace: "\u007f",
112 KeyHome: "\x1b[1~",
113 KeyEnd: "\x1b[4~",
114 KeyPgUp: "\x1b[5~",
115 KeyPgDn: "\x1b[6~",
116 KeyF1: "\x1bOP",
117 KeyF2: "\x1bOQ",
118 KeyF3: "\x1bOR",
119 KeyF4: "\x1bOS",
120 KeyF5: "\x1b[15~",
121 KeyF6: "\x1b[17~",
122 KeyF7: "\x1b[18~",
123 KeyF8: "\x1b[19~",
124 KeyF9: "\x1b[20~",
125 KeyF10: "\x1b[21~",
126 KeyF11: "\x1b[23~",
127 KeyF12: "\x1b[24~",
128 KeyBacktab: "\x1b[Z",
129 Modifiers: 1,
130 AutoMargin: true,
131 })
132 }
133
View as plain text