1
2
3 package alacritty
4
5 import "github.com/gdamore/tcell/v2/terminfo"
6
7 func init() {
8
9
10 terminfo.AddTerminfo(&terminfo.Terminfo{
11 Name: "alacritty",
12 Columns: 80,
13 Lines: 24,
14 Colors: 256,
15 Bell: "\a",
16 Clear: "\x1b[H\x1b[2J",
17 EnterCA: "\x1b[?1049h\x1b[22;0;0t",
18 ExitCA: "\x1b[?1049l\x1b[23;0;0t",
19 ShowCursor: "\x1b[?12l\x1b[?25h",
20 HideCursor: "\x1b[?25l",
21 AttrOff: "\x1b(B\x1b[m",
22 Underline: "\x1b[4m",
23 Bold: "\x1b[1m",
24 Dim: "\x1b[2m",
25 Italic: "\x1b[3m",
26 Blink: "\x1b[5m",
27 Reverse: "\x1b[7m",
28 EnterKeypad: "\x1b[?1h\x1b=",
29 ExitKeypad: "\x1b[?1l\x1b>",
30 SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m",
31 SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m",
32 SetFgBg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m",
33 ResetFgBg: "\x1b[39;49m",
34 AltChars: "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~",
35 EnterAcs: "\x1b(0",
36 ExitAcs: "\x1b(B",
37 StrikeThrough: "\x1b[9m",
38 Mouse: "\x1b[<",
39 SetCursor: "\x1b[%i%p1%d;%p2%dH",
40 CursorBack1: "\b",
41 CursorUp1: "\x1b[A",
42 KeyUp: "\x1bOA",
43 KeyDown: "\x1bOB",
44 KeyRight: "\x1bOC",
45 KeyLeft: "\x1bOD",
46 KeyInsert: "\x1b[2~",
47 KeyDelete: "\x1b[3~",
48 KeyBackspace: "\u007f",
49 KeyHome: "\x1bOH",
50 KeyEnd: "\x1bOF",
51 KeyPgUp: "\x1b[5~",
52 KeyPgDn: "\x1b[6~",
53 KeyF1: "\x1bOP",
54 KeyF2: "\x1bOQ",
55 KeyF3: "\x1bOR",
56 KeyF4: "\x1bOS",
57 KeyF5: "\x1b[15~",
58 KeyF6: "\x1b[17~",
59 KeyF7: "\x1b[18~",
60 KeyF8: "\x1b[19~",
61 KeyF9: "\x1b[20~",
62 KeyF10: "\x1b[21~",
63 KeyF11: "\x1b[23~",
64 KeyF12: "\x1b[24~",
65 KeyBacktab: "\x1b[Z",
66 Modifiers: 1,
67 AutoMargin: true,
68 })
69 }
70
View as plain text