1
2
3 package cygwin
4
5 import "github.com/gdamore/tcell/v2/terminfo"
6
7 func init() {
8
9
10 terminfo.AddTerminfo(&terminfo.Terminfo{
11 Name: "cygwin",
12 Colors: 8,
13 Bell: "\a",
14 Clear: "\x1b[H\x1b[J",
15 EnterCA: "\x1b7\x1b[?47h",
16 ExitCA: "\x1b[2J\x1b[?47l\x1b8",
17 AttrOff: "\x1b[0;10m",
18 Underline: "\x1b[4m",
19 Bold: "\x1b[1m",
20 Reverse: "\x1b[7m",
21 SetFg: "\x1b[3%p1%dm",
22 SetBg: "\x1b[4%p1%dm",
23 SetFgBg: "\x1b[3%p1%d;4%p2%dm",
24 ResetFgBg: "\x1b[39;49m",
25 PadChar: "\x00",
26 AltChars: "+\x10,\x11-\x18.\x190\xdb`\x04a\xb1f\xf8g\xf1h\xb0j\xd9k\xbfl\xdam\xc0n\xc5o~p\xc4q\xc4r\xc4s_t\xc3u\xb4v\xc1w\xc2x\xb3y\xf3z\xf2{\xe3|\xd8}\x9c~\xfe",
27 EnterAcs: "\x1b[11m",
28 ExitAcs: "\x1b[10m",
29 SetCursor: "\x1b[%i%p1%d;%p2%dH",
30 CursorBack1: "\b",
31 CursorUp1: "\x1b[A",
32 KeyUp: "\x1b[A",
33 KeyDown: "\x1b[B",
34 KeyRight: "\x1b[C",
35 KeyLeft: "\x1b[D",
36 KeyInsert: "\x1b[2~",
37 KeyDelete: "\x1b[3~",
38 KeyBackspace: "\b",
39 KeyHome: "\x1b[1~",
40 KeyEnd: "\x1b[4~",
41 KeyPgUp: "\x1b[5~",
42 KeyPgDn: "\x1b[6~",
43 KeyF1: "\x1b[[A",
44 KeyF2: "\x1b[[B",
45 KeyF3: "\x1b[[C",
46 KeyF4: "\x1b[[D",
47 KeyF5: "\x1b[[E",
48 KeyF6: "\x1b[17~",
49 KeyF7: "\x1b[18~",
50 KeyF8: "\x1b[19~",
51 KeyF9: "\x1b[20~",
52 KeyF10: "\x1b[21~",
53 KeyF11: "\x1b[23~",
54 KeyF12: "\x1b[24~",
55 KeyF13: "\x1b[25~",
56 KeyF14: "\x1b[26~",
57 KeyF15: "\x1b[28~",
58 KeyF16: "\x1b[29~",
59 KeyF17: "\x1b[31~",
60 KeyF18: "\x1b[32~",
61 KeyF19: "\x1b[33~",
62 KeyF20: "\x1b[34~",
63 AutoMargin: true,
64 InsertChar: "\x1b[@",
65 })
66 }
67
View as plain text