1
2
3 package dtterm
4
5 import "github.com/gdamore/tcell/v2/terminfo"
6
7 func init() {
8
9
10 terminfo.AddTerminfo(&terminfo.Terminfo{
11 Name: "dtterm",
12 Columns: 80,
13 Lines: 24,
14 Colors: 8,
15 Bell: "\a",
16 Clear: "\x1b[H\x1b[J",
17 ShowCursor: "\x1b[?25h",
18 HideCursor: "\x1b[?25l",
19 AttrOff: "\x1b[m\x0f",
20 Underline: "\x1b[4m",
21 Bold: "\x1b[1m",
22 Dim: "\x1b[2m",
23 Blink: "\x1b[5m",
24 Reverse: "\x1b[7m",
25 SetFg: "\x1b[3%p1%dm",
26 SetBg: "\x1b[4%p1%dm",
27 SetFgBg: "\x1b[3%p1%d;4%p2%dm",
28 ResetFgBg: "\x1b[39;49m",
29 PadChar: "\x00",
30 AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
31 EnterAcs: "\x0e",
32 ExitAcs: "\x0f",
33 EnableAcs: "\x1b(B\x1b)0",
34 SetCursor: "\x1b[%i%p1%d;%p2%dH",
35 CursorBack1: "\b",
36 CursorUp1: "\x1b[A",
37 KeyUp: "\x1b[A",
38 KeyDown: "\x1b[B",
39 KeyRight: "\x1b[C",
40 KeyLeft: "\x1b[D",
41 KeyInsert: "\x1b[2~",
42 KeyDelete: "\x1b[3~",
43 KeyBackspace: "\b",
44 KeyPgUp: "\x1b[5~",
45 KeyPgDn: "\x1b[6~",
46 KeyF1: "\x1b[11~",
47 KeyF2: "\x1b[12~",
48 KeyF3: "\x1b[13~",
49 KeyF4: "\x1b[14~",
50 KeyF5: "\x1b[15~",
51 KeyF6: "\x1b[17~",
52 KeyF7: "\x1b[18~",
53 KeyF8: "\x1b[19~",
54 KeyF9: "\x1b[20~",
55 KeyF10: "\x1b[21~",
56 KeyF11: "\x1b[23~",
57 KeyF12: "\x1b[24~",
58 KeyF13: "\x1b[25~",
59 KeyF14: "\x1b[26~",
60 KeyF15: "\x1b[28~",
61 KeyF16: "\x1b[29~",
62 KeyF17: "\x1b[31~",
63 KeyF18: "\x1b[32~",
64 KeyF19: "\x1b[33~",
65 KeyF20: "\x1b[34~",
66 KeyHelp: "\x1b[28~",
67 AutoMargin: true,
68 })
69 }
70
View as plain text