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