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