...
1
2
3 package hpterm
4
5 import "github.com/gdamore/tcell/v2/terminfo"
6
7 func init() {
8
9
10 terminfo.AddTerminfo(&terminfo.Terminfo{
11 Name: "hpterm",
12 Aliases: []string{"X-hpterm"},
13 Columns: 80,
14 Lines: 24,
15 Bell: "\a",
16 Clear: "\x1b&a0y0C\x1bJ",
17 AttrOff: "\x1b&d@\x0f",
18 Underline: "\x1b&dD",
19 Bold: "\x1b&dB",
20 Dim: "\x1b&dH",
21 Reverse: "\x1b&dB",
22 EnterKeypad: "\x1b&s1A",
23 ExitKeypad: "\x1b&s0A",
24 PadChar: "\x00",
25 EnterAcs: "\x0e",
26 ExitAcs: "\x0f",
27 SetCursor: "\x1b&a%p1%dy%p2%dC",
28 CursorBack1: "\b",
29 CursorUp1: "\x1bA",
30 KeyUp: "\x1bA",
31 KeyDown: "\x1bB",
32 KeyRight: "\x1bC",
33 KeyLeft: "\x1bD",
34 KeyInsert: "\x1bQ",
35 KeyDelete: "\x1bP",
36 KeyBackspace: "\b",
37 KeyHome: "\x1bh",
38 KeyPgUp: "\x1bV",
39 KeyPgDn: "\x1bU",
40 KeyF1: "\x1bp",
41 KeyF2: "\x1bq",
42 KeyF3: "\x1br",
43 KeyF4: "\x1bs",
44 KeyF5: "\x1bt",
45 KeyF6: "\x1bu",
46 KeyF7: "\x1bv",
47 KeyF8: "\x1bw",
48 KeyClear: "\x1bJ",
49 AutoMargin: true,
50 })
51 }
52
View as plain text