...
1
2
3 package vt420
4
5 import "github.com/gdamore/tcell/v2/terminfo"
6
7 func init() {
8
9
10 terminfo.AddTerminfo(&terminfo.Terminfo{
11 Name: "vt420",
12 Columns: 80,
13 Lines: 24,
14 Bell: "\a",
15 Clear: "\x1b[H\x1b[2J$<50>",
16 ShowCursor: "\x1b[?25h",
17 HideCursor: "\x1b[?25l",
18 AttrOff: "\x1b[m\x1b(B$<2>",
19 Underline: "\x1b[4m",
20 Bold: "\x1b[1m$<2>",
21 Blink: "\x1b[5m$<2>",
22 Reverse: "\x1b[7m$<2>",
23 EnterKeypad: "\x1b=",
24 ExitKeypad: "\x1b>",
25 PadChar: "\x00",
26 AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
27 EnterAcs: "\x1b(0$<2>",
28 ExitAcs: "\x1b(B$<4>",
29 EnableAcs: "\x1b)0",
30 SetCursor: "\x1b[%i%p1%d;%p2%dH$<10>",
31 CursorBack1: "\b",
32 CursorUp1: "\x1b[A",
33 KeyUp: "\x1b[A",
34 KeyDown: "\x1b[B",
35 KeyRight: "\x1b[C",
36 KeyLeft: "\x1b[D",
37 KeyInsert: "\x1b[2~",
38 KeyDelete: "\x1b[3~",
39 KeyBackspace: "\b",
40 KeyPgUp: "\x1b[5~",
41 KeyPgDn: "\x1b[6~",
42 KeyF1: "\x1bOP",
43 KeyF2: "\x1bOQ",
44 KeyF3: "\x1bOR",
45 KeyF4: "\x1bOS",
46 KeyF5: "\x1b[17~",
47 KeyF6: "\x1b[18~",
48 KeyF7: "\x1b[19~",
49 KeyF8: "\x1b[20~",
50 KeyF9: "\x1b[21~",
51 KeyF10: "\x1b[29~",
52 AutoMargin: true,
53 })
54 }
55
View as plain text