]> code.delx.au - monosys/blob - terminfo/xterm.ti
Added XML pretty printer
[monosys] / terminfo / xterm.ti
1 #!/usr/bin/env tic -e xterm,xterm-color,xterm-simple,itermapp
2
3 # How should you use these?
4 #
5 # Compile this using the shebang line at the top, then copy the ~/.terminfo to
6 # every machine you want it availble on
7 #
8 # If you're running xterm, urxvt, konsole or any other compliant terminal you
9 # should set TERM=xterm and ensure that backspace/delete send ^? and ^[[3~
10 # respectively. TERM must be set in your console preferences, NOT in bashrc, etc
11 #
12 # If you're running iTerm.app then set TERM to be xterm-itermapp. Do this by
13 # going to Bookmarks-> Manage Profiles-> Terminal Profiles-> Terminal Type
14 #
15 # If you have problems only on a specific machine, older OSes in particular, try
16 # using TERM=xterm-simple on that machine.
17 # Eg, cp ~/.terminfo/x/xterm-simple ~/.terminfo/x/xterm
18
19
20 xterm-new|modern xterm terminal emulator,
21 npc,
22 indn=\E[%p1%dS,
23 kDC=\E[3;2~,
24 kEND=\E[1;2F,
25 kHOM=\E[1;2H,
26 kIC=\E[2;2~,
27 kLFT=\E[1;2D,
28 kNXT=\E[6;2~,
29 kPRV=\E[5;2~,
30 kRIT=\E[1;2C,
31 kb2=\EOE,
32 kcbt=\E[Z,
33 kcub1=\EOD,
34 kcud1=\EOB,
35 kcuf1=\EOC,
36 kcuu1=\EOA,
37 kend=\EOF,
38 kent=\EOM,
39 khome=\EOH,
40 kich1=\E[2~,
41 kmous=\E[M,
42 knp=\E[6~,
43 kpp=\E[5~,
44 rin=\E[%p1%dT,
45 use=xterm+pcfkeys,
46 use=xterm-basic,
47
48 xterm+pcfkeys|fragment for PC-style keys,
49 kf1=\EOP,
50 kf10=\E[21~,
51 kf11=\E[23~,
52 kf12=\E[24~,
53 kf13=\EO2P,
54 kf14=\EO2Q,
55 kf15=\EO2R,
56 kf16=\EO2S,
57 kf17=\E[15;2~,
58 kf18=\E[17;2~,
59 kf19=\E[18;2~,
60 kf2=\EOQ,
61 kf20=\E[19;2~,
62 kf21=\E[20;2~,
63 kf22=\E[21;2~,
64 kf23=\E[23;2~,
65 kf24=\E[24;2~,
66 kf25=\EO5P,
67 kf26=\EO5Q,
68 kf27=\EO5R,
69 kf28=\EO5S,
70 kf29=\E[15;5~,
71 kf3=\EOR,
72 kf30=\E[17;5~,
73 kf31=\E[18;5~,
74 kf32=\E[19;5~,
75 kf33=\E[20;5~,
76 kf34=\E[21;5~,
77 kf35=\E[23;5~,
78 kf36=\E[24;5~,
79 kf37=\EO6P,
80 kf38=\EO6Q,
81 kf39=\EO6R,
82 kf4=\EOS,
83 kf40=\EO6S,
84 kf41=\E[15;6~,
85 kf42=\E[17;6~,
86 kf43=\E[18;6~,
87 kf44=\E[19;6~,
88 kf45=\E[20;6~,
89 kf46=\E[21;6~,
90 kf47=\E[23;6~,
91 kf48=\E[24;6~,
92 kf49=\EO3P,
93 kf5=\E[15~,
94 kf50=\EO3Q,
95 kf51=\EO3R,
96 kf52=\EO3S,
97 kf53=\E[15;3~,
98 kf54=\E[17;3~,
99 kf55=\E[18;3~,
100 kf56=\E[19;3~,
101 kf57=\E[20;3~,
102 kf58=\E[21;3~,
103 kf59=\E[23;3~,
104 kf6=\E[17~,
105 kf60=\E[24;3~,
106 kf61=\EO4P,
107 kf62=\EO4Q,
108 kf63=\EO4R,
109 kf7=\E[18~,
110 kf8=\E[19~,
111 kf9=\E[20~,
112
113 # This chunk is used for building the VT220/Sun/PC keyboard variants.
114 xterm-basic|modern xterm terminal emulator - common,
115 hs,
116 tsl=\E]0;,
117 fsl=\007,
118 dsl=\E]0;\007,
119 am,
120 bce,
121 km,
122 mc5i,
123 mir,
124 msgr,
125 xenl,
126 colors#8,
127 cols#80,
128 it#8,
129 lines#24,
130 pairs#64,
131 acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
132 bel=^G,
133 blink=\E[5m,
134 bold=\E[1m,
135 cbt=\E[Z,
136 civis=\E[?25l,
137 clear=\E[H\E[2J,
138 cnorm=\E[?12l\E[?25h,
139 cr=^M,
140 csr=\E[%i%p1%d;%p2%dr,
141 cub=\E[%p1%dD,
142 cub1=^H,
143 cud=\E[%p1%dB,
144 cud1=^J,
145 cuf=\E[%p1%dC,
146 cuf1=\E[C,
147 cup=\E[%i%p1%d;%p2%dH,
148 cuu=\E[%p1%dA,
149 cuu1=\E[A,
150 cvvis=\E[?12;25h,
151 dch=\E[%p1%dP,
152 dch1=\E[P,
153 dl=\E[%p1%dM,
154 dl1=\E[M,
155 ech=\E[%p1%dX,
156 ed=\E[J,
157 el=\E[K,
158 el1=\E[1K,
159 flash=\E[?5h$<100/>\E[?5l,
160 home=\E[H,
161 hpa=\E[%i%p1%dG,
162 ht=^I,
163 hts=\EH,
164 ich=\E[%p1%d@,
165 il=\E[%p1%dL,
166 il1=\E[L,
167 ind=^J,
168 invis=\E[8m,
169 is2=\E[!p\E[?3;4l\E[4l\E>,
170 kbs=\177,
171 kdch1=\E[3~,
172 mc0=\E[i,
173 mc4=\E[4i,
174 mc5=\E[5i,
175 meml=\El,
176 memu=\Em,
177 op=\E[39;49m,
178 rc=\E8,
179 rev=\E[7m,
180 ri=\EM,
181 rmacs=\E(B,
182 rmam=\E[?7l,
183 rmcup=\E[?1049l,
184 rmir=\E[4l,
185 rmkx=\E[?1l\E>,
186 rmso=\E[27m,
187 rmul=\E[24m,
188 rs1=\Ec,
189 rs2=\E[!p\E[?3;4l\E[4l\E>,
190 sc=\E7,
191 setab=\E[4%p1%dm,
192 setaf=\E[3%p1%dm,
193 setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
194 setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
195 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
196 sgr0=\E[m\E(B,
197 smacs=\E(0,
198 smam=\E[?7h,
199 smcup=\E[?1049h,
200 smir=\E[4h,
201 smkx=\E[?1h\E=,
202 smso=\E[7m,
203 smul=\E[4m,
204 tbc=\E[3g,
205 u6=\E[%i%d;%dR,
206 u7=\E[6n,
207 u8=\E[?1;2c,
208 u9=\E[c,
209 vpa=\E[%i%p1%dd,
210
211
212 # Compatible with the R6 xterm, with the following changes:
213 # + added acsc (perhaps some versions of tic assume the standard vt100
214 # alternate character set)
215 # + added u6, u7, u8, u9 strings for Daniel Weaver's tack program.
216 # + added kmous string for ncurses.
217 # + added khome/kend strings (which conflict with kfnd/kslt, see note).
218 xterm-r6|xterm-old|xterm X11R6 version,
219 am,
220 km,
221 mir,
222 msgr,
223 xenl,
224 cols#80,
225 it#8,
226 lines#24,
227 acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
228 bel=^G,
229 blink@,
230 bold=\E[1m,
231 clear=\E[H\E[2J,
232 cr=^M,
233 csr=\E[%i%p1%d;%p2%dr,
234 cub=\E[%p1%dD,
235 cub1=^H,
236 cud=\E[%p1%dB,
237 cud1=^J,
238 cuf=\E[%p1%dC,
239 cuf1=\E[C,
240 cup=\E[%i%p1%d;%p2%dH,
241 cuu=\E[%p1%dA,
242 cuu1=\E[A,
243 dch=\E[%p1%dP,
244 dch1=\E[P,
245 dl=\E[%p1%dM,
246 dl1=\E[M,
247 ed=\E[J,
248 el=\E[K,
249 enacs=\E)0,
250 home=\E[H,
251 ht=^I,
252 il=\E[%p1%dL,
253 il1=\E[L,
254 ind=^J,
255 is2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
256 kbs=\177,
257 kcub1=\EOD,
258 kcud1=\EOB,
259 kcuf1=\EOC,
260 kcuu1=\EOA,
261 kdch1=\E[3~,
262 kend=\E[4~,
263 kf1=\E[11~,
264 kf10=\E[21~,
265 kf11=\E[23~,
266 kf12=\E[24~,
267 kf13=\E[25~,
268 kf14=\E[26~,
269 kf15=\E[28~,
270 kf16=\E[29~,
271 kf17=\E[31~,
272 kf18=\E[32~,
273 kf19=\E[33~,
274 kf2=\E[12~,
275 kf20=\E[34~,
276 kf3=\E[13~,
277 kf4=\E[14~,
278 kf5=\E[15~,
279 kf6=\E[17~,
280 kf7=\E[18~,
281 kf8=\E[19~,
282 kf9=\E[20~,
283 khome=\E[1~,
284 kich1=\E[2~,
285 kmous=\E[M,
286 knp=\E[6~,
287 kpp=\E[5~,
288 meml=\El,
289 memu=\Em,
290 rc=\E8,
291 rev=\E[7m,
292 ri=\EM,
293 rmacs=^O,
294 rmcup=\E[2J\E[?47l\E8,
295 rmir=\E[4l,
296 rmkx=\E[?1l\E>,
297 rmso=\E[m,
298 rmul=\E[m,
299 rs2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
300 sc=\E7,
301 sgr0=\E[m,
302 smacs=^N,
303 smcup=\E7\E[?47h,
304 smir=\E[4h,
305 smkx=\E[?1h\E=,
306 smso=\E[7m,
307 smul=\E[4m,
308 tbc=\E[3g,
309 u6=\E[%i%d;%dR,
310 u7=\E[6n,
311 u8=\E[?1;2c,
312 u9=\E[c,
313
314 xterm-color|generic "ANSI" color xterm (X Window System),
315 colors#8,
316 ncv@,
317 pairs#64,
318 op=\E[m,
319 setab=\E[4%p1%dm,
320 setaf=\E[3%p1%dm,
321 use=xterm-r6,
322
323 xterm|X11 terminal emulator,
324 use=xterm-new,
325
326 # This entry is based on xterm-color which is based on xterm-r6. It has with
327 # the newer keys from xterm-new.
328 xterm-simple|iTerm.app on OSX - simple version,
329 use=xterm-color,
330 use=xterm+pcfkeys,
331
332 # Entry for iTerm.app under Mac OS X. It doesn't behave quite like xterm
333 itermapp|iTerm.app on OSX,
334 use=xterm-new,
335 # 256 colours are supported
336 ccc,
337 colors#256,
338 pairs#32767,
339 initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
340 setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
341 setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
342 setb@, setf@,
343 # Use supported init/reset strings
344 is2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
345 rs1@,
346 rs2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
347 # move_standout_mode breaks Vim, but is need for offlineimap in screen :\
348 ### msgr@,
349 # back_tab unsupported, this makes Mutt work
350 cbt@,
351 # Makes the secondary screen work properly, taken from xterm-r6
352 smcup=\E7\E[?47h,
353 rmcup=\E[2J\E[?47l\E8,
354