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