term.go (6892B)
1 // Generated automatically. DO NOT HAND-EDIT. 2 3 package xterm 4 5 import "github.com/gdamore/tcell/v2/terminfo" 6 7 func init() { 8 9 // xterm terminal emulator (X Window System) 10 terminfo.AddTerminfo(&terminfo.Terminfo{ 11 Name: "xterm", 12 Aliases: []string{"xterm-debian"}, 13 Columns: 80, 14 Lines: 24, 15 Colors: 8, 16 Bell: "\a", 17 Clear: "\x1b[H\x1b[2J", 18 EnterCA: "\x1b[?1049h\x1b[22;0;0t", 19 ExitCA: "\x1b[?1049l\x1b[23;0;0t", 20 ShowCursor: "\x1b[?12l\x1b[?25h", 21 HideCursor: "\x1b[?25l", 22 AttrOff: "\x1b(B\x1b[m", 23 Underline: "\x1b[4m", 24 Bold: "\x1b[1m", 25 Dim: "\x1b[2m", 26 Italic: "\x1b[3m", 27 Blink: "\x1b[5m", 28 Reverse: "\x1b[7m", 29 EnterKeypad: "\x1b[?1h\x1b=", 30 ExitKeypad: "\x1b[?1l\x1b>", 31 SetFg: "\x1b[3%p1%dm", 32 SetBg: "\x1b[4%p1%dm", 33 SetFgBg: "\x1b[3%p1%d;4%p2%dm", 34 ResetFgBg: "\x1b[39;49m", 35 AltChars: "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", 36 EnterAcs: "\x1b(0", 37 ExitAcs: "\x1b(B", 38 EnableAutoMargin: "\x1b[?7h", 39 DisableAutoMargin: "\x1b[?7l", 40 StrikeThrough: "\x1b[9m", 41 Mouse: "\x1b[<", 42 SetCursor: "\x1b[%i%p1%d;%p2%dH", 43 CursorBack1: "\b", 44 CursorUp1: "\x1b[A", 45 KeyUp: "\x1bOA", 46 KeyDown: "\x1bOB", 47 KeyRight: "\x1bOC", 48 KeyLeft: "\x1bOD", 49 KeyInsert: "\x1b[2~", 50 KeyDelete: "\x1b[3~", 51 KeyBackspace: "\x7f", 52 KeyHome: "\x1bOH", 53 KeyEnd: "\x1bOF", 54 KeyPgUp: "\x1b[5~", 55 KeyPgDn: "\x1b[6~", 56 KeyF1: "\x1bOP", 57 KeyF2: "\x1bOQ", 58 KeyF3: "\x1bOR", 59 KeyF4: "\x1bOS", 60 KeyF5: "\x1b[15~", 61 KeyF6: "\x1b[17~", 62 KeyF7: "\x1b[18~", 63 KeyF8: "\x1b[19~", 64 KeyF9: "\x1b[20~", 65 KeyF10: "\x1b[21~", 66 KeyF11: "\x1b[23~", 67 KeyF12: "\x1b[24~", 68 KeyBacktab: "\x1b[Z", 69 Modifiers: 1, 70 AutoMargin: true, 71 XTermLike: true, 72 }) 73 74 // xterm with 88 colors 75 terminfo.AddTerminfo(&terminfo.Terminfo{ 76 Name: "xterm-88color", 77 Columns: 80, 78 Lines: 24, 79 Colors: 88, 80 Bell: "\a", 81 Clear: "\x1b[H\x1b[2J", 82 EnterCA: "\x1b[?1049h\x1b[22;0;0t", 83 ExitCA: "\x1b[?1049l\x1b[23;0;0t", 84 ShowCursor: "\x1b[?12l\x1b[?25h", 85 HideCursor: "\x1b[?25l", 86 AttrOff: "\x1b(B\x1b[m", 87 Underline: "\x1b[4m", 88 Bold: "\x1b[1m", 89 Dim: "\x1b[2m", 90 Italic: "\x1b[3m", 91 Blink: "\x1b[5m", 92 Reverse: "\x1b[7m", 93 EnterKeypad: "\x1b[?1h\x1b=", 94 ExitKeypad: "\x1b[?1l\x1b>", 95 SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m", 96 SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", 97 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", 98 ResetFgBg: "\x1b[39;49m", 99 AltChars: "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", 100 EnterAcs: "\x1b(0", 101 ExitAcs: "\x1b(B", 102 EnableAutoMargin: "\x1b[?7h", 103 DisableAutoMargin: "\x1b[?7l", 104 StrikeThrough: "\x1b[9m", 105 Mouse: "\x1b[<", 106 SetCursor: "\x1b[%i%p1%d;%p2%dH", 107 CursorBack1: "\b", 108 CursorUp1: "\x1b[A", 109 KeyUp: "\x1bOA", 110 KeyDown: "\x1bOB", 111 KeyRight: "\x1bOC", 112 KeyLeft: "\x1bOD", 113 KeyInsert: "\x1b[2~", 114 KeyDelete: "\x1b[3~", 115 KeyBackspace: "\x7f", 116 KeyHome: "\x1bOH", 117 KeyEnd: "\x1bOF", 118 KeyPgUp: "\x1b[5~", 119 KeyPgDn: "\x1b[6~", 120 KeyF1: "\x1bOP", 121 KeyF2: "\x1bOQ", 122 KeyF3: "\x1bOR", 123 KeyF4: "\x1bOS", 124 KeyF5: "\x1b[15~", 125 KeyF6: "\x1b[17~", 126 KeyF7: "\x1b[18~", 127 KeyF8: "\x1b[19~", 128 KeyF9: "\x1b[20~", 129 KeyF10: "\x1b[21~", 130 KeyF11: "\x1b[23~", 131 KeyF12: "\x1b[24~", 132 KeyBacktab: "\x1b[Z", 133 Modifiers: 1, 134 AutoMargin: true, 135 XTermLike: true, 136 }) 137 138 // xterm with 256 colors 139 terminfo.AddTerminfo(&terminfo.Terminfo{ 140 Name: "xterm-256color", 141 Columns: 80, 142 Lines: 24, 143 Colors: 256, 144 Bell: "\a", 145 Clear: "\x1b[H\x1b[2J", 146 EnterCA: "\x1b[?1049h\x1b[22;0;0t", 147 ExitCA: "\x1b[?1049l\x1b[23;0;0t", 148 ShowCursor: "\x1b[?12l\x1b[?25h", 149 HideCursor: "\x1b[?25l", 150 AttrOff: "\x1b(B\x1b[m", 151 Underline: "\x1b[4m", 152 Bold: "\x1b[1m", 153 Dim: "\x1b[2m", 154 Italic: "\x1b[3m", 155 Blink: "\x1b[5m", 156 Reverse: "\x1b[7m", 157 EnterKeypad: "\x1b[?1h\x1b=", 158 ExitKeypad: "\x1b[?1l\x1b>", 159 SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m", 160 SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", 161 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", 162 ResetFgBg: "\x1b[39;49m", 163 AltChars: "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", 164 EnterAcs: "\x1b(0", 165 ExitAcs: "\x1b(B", 166 EnableAutoMargin: "\x1b[?7h", 167 DisableAutoMargin: "\x1b[?7l", 168 StrikeThrough: "\x1b[9m", 169 Mouse: "\x1b[<", 170 SetCursor: "\x1b[%i%p1%d;%p2%dH", 171 CursorBack1: "\b", 172 CursorUp1: "\x1b[A", 173 KeyUp: "\x1bOA", 174 KeyDown: "\x1bOB", 175 KeyRight: "\x1bOC", 176 KeyLeft: "\x1bOD", 177 KeyInsert: "\x1b[2~", 178 KeyDelete: "\x1b[3~", 179 KeyBackspace: "\x7f", 180 KeyHome: "\x1bOH", 181 KeyEnd: "\x1bOF", 182 KeyPgUp: "\x1b[5~", 183 KeyPgDn: "\x1b[6~", 184 KeyF1: "\x1bOP", 185 KeyF2: "\x1bOQ", 186 KeyF3: "\x1bOR", 187 KeyF4: "\x1bOS", 188 KeyF5: "\x1b[15~", 189 KeyF6: "\x1b[17~", 190 KeyF7: "\x1b[18~", 191 KeyF8: "\x1b[19~", 192 KeyF9: "\x1b[20~", 193 KeyF10: "\x1b[21~", 194 KeyF11: "\x1b[23~", 195 KeyF12: "\x1b[24~", 196 KeyBacktab: "\x1b[Z", 197 Modifiers: 1, 198 AutoMargin: true, 199 XTermLike: true, 200 }) 201 }