Debian Codegraph @

terminfo

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # $XTermId: terminfo,v 1.216 2026/02/12 22:20:25 tom Exp $
2 #
3 # Updates/notes/new entries (e.g., xterm-8bit, xterm-16color, xterm-256color)
4 # - Thomas E. Dickey
5 #
6 #------------------------------------------------------------------------------
7 # Copyright 1996-2025,2026 by Thomas E. Dickey
8 #
9 # All Rights Reserved
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a
12 # copy of this software and associated documentation files (the
13 # "Software"), to deal in the Software without restriction, including
14 # without limitation the rights to use, copy, modify, merge, publish,
15 # distribute, sublicense, and/or sell copies of the Software, and to
16 # permit persons to whom the Software is furnished to do so, subject to
17 # the following conditions:
18 #
19 # The above copyright notice and this permission notice shall be included
20 # in all copies or substantial portions of the Software.
21 #
22 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25 # IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
26 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 #
30 # Except as contained in this notice, the name(s) of the above copyright
31 # holders shall not be used in advertising or otherwise to promote the
32 # sale, use or other dealings in this Software without prior written
33 # authorization.
34 #------------------------------------------------------------------------------
35 # format (ncurses 6.1): tic -I -W -1 -f -x terminfo
36 #------------------------------------------------------------------------------
37 #
38 # Special Capabilities:
39 # --------------------
40 # ich has a corresponding capability that inserts a single blank. We could
41 # have used ich1=\E[@, which works with ncurses, but that is not standard
42 # behavior. If it is set, then SVr4 vi (e.g., Solaris 2.6) emits both
43 # smir/rmir and ich1.
44 # meml locks memory above the cursor; memu unlocks (ala HP terminals). This
45 # is not recognized by some older (e.g., SVr3) tic programs, but none
46 # do more than warn about it. Ignore the warning.
47 # smcup clears memory before switching to the alternate screen. The older
48 # (deprecated) \E[?47h did not do this, requiring applications to
49 # embed a \E[2J in the rmcup string. However, that behavior cannot
50 # be disabled via titeInhibit, making that resource not function as
51 # intended on systems with terminfo.
52 # rs2/is2 are shorter with XFree86 xterm because it supports DECSTR. We
53 # use the shorter sequence for compatibility with the termcap, which
54 # is trimmed to keep it shorter than 1023 characters. It (escape \E[!p)
55 # replaces these in the conventional vt100 reset-string:
56 # \E7 - save cursor (fixes origin-mode side-effect)
57 # \E[r - reset scrolling margins
58 # \E[m - reset SGR (including color)
59 # \E[?7h - reset wraparound mode (DECAWM)
60 # \E[?1l - reset application cursor keys (DECCKM)
61 # \E[?6l - reset origin mode (DECOM)
62 # \E8 - restore cursor
63 # DECSTR is recognized by XFree86 xterm even in vt52 mode.
64 #
65 # Editing Keypad:
66 # --------------
67 # XFree86 xterm emulates vt220 if the decTerminalID resource is set to 200 or
68 # higher. Otherwise it emulates a vt100 or vt52 depending on the value of the
69 # resource. When emulating a vt220, we support the editing keypad. Sun and PC
70 # keyboards have an editing keypad which is similar to the vt220:
71 #
72 # VT220 editing keypad
73 # ----------------------------
74 # Find Insert Remove
75 # Select Prev Next
76 # ----------------------------
77 #
78 # Sun/PC editing keypad
79 # ----------------------------
80 # Insert Home PageUp
81 # Delete End PageDn
82 # ----------------------------
83 #
84 # If the sunKeyboard resource is true, we map it this way (adjusting the values
85 # of Home, End and Delete):
86 # VT220 Sun/PC
87 # ----------------------------
88 # Find Home
89 # Select End
90 # Insert Insert
91 # Remove Delete
92 # Prev PageUp
93 # Next PageDn
94 # ----------------------------
95 #
96 # Note that all of the keys on the editing keypad transmit escape sequences. A
97 # vt220 does this only when in vt220 mode; when emulating a vt100 the editing
98 # keypad is inactive.
99 #
100 # Alternative keycodes:
101 # --------------------
102 # Several of the function keys have alternative names, depending on the type of
103 # host which your xterm is connected to. DEC (i.e., the VMS system) uses F15
104 # as the HELP key, F16 as the DO key. Unix applications generally do not do
105 # this. Curses applications in particular, assign a unique keycode to each
106 # capability string. These terminal descriptions do not have conflicting
107 # definitions, to ensure that Unix curses applications use a consistent set of
108 # keycodes. To get a VMS-bias, make these substitutions:
109 # 1. change khome to kfnd
110 # 2. change kend to kslt
111 # The original xterm-r6 entry does in fact have a VMS bias.
112 #
113 # Some legacy applications using the termcap emulation may expect kll where
114 # we have specified kend.
115 #
116 # Function keys with modifiers (Sun/PC):
117 # -------------------------------------
118 # Shift-Fx - kf{12+x}
119 # Control-Fx - kf{24+x}
120 # Shift-Control-Fx - kf{36+x}
121 #
122 # The terminfo defines some special keys which are documented as "shifted",
123 # e.g., kDC is shifted-delete-character.
124 #
125 # Note however, that even though the terminfo says a key might be sent, there
126 # may be conflicts which prevent this. For example, it is common to use
127 # shifted pageup and pagedown for window manager functions. The default
128 # translation for xterm since X11R4 has overridden shifted Insert, Select,
129 # PageUp and PageDown, which correspond to terminfo kIC, kEND, kPRV and kNXT
130 # respectively.
131 #
132 xterm-new|modern xterm terminal emulator,
133 rv=\E\\[>41;[1-6][0-9][0-9];0c,
134 xr=\EP>\\|XTerm\\(([1-9][0-9]+)
135 \\)\E\\\\,
136 use=dec+sl,
137 use=ecma+index,
138 use=xterm+keypad,
139 use=vt420+lrmm,
140 use=xterm+sm+1006,
141 use=ansi+rep,
142 use=ecma+strikeout,
143 use=xterm+pcfkeys,
144 use=xterm+tmux,
145 use=xterm+nofkeys,
146 use=bracketed+paste,
147 use=report+version,
148 use=xterm+focus,
149 use=xterm+3keys,
150
151 # Left/right margins are supported in xterm since patch #279 (2012/05/10)
152 vt420+lrmm|VT420 left/right margins,
153 mgc=\E[?69l,
154 smglp=\E[?69h\E[%i%p1%ds,
155 smglr=\E[?69h\E[%i%p1%d;%p2%ds,
156 smgrp=\E[?69h\E[%i;%p1%ds,
157
158 # These "ansi+XXX" blocks were added in ncurses 5.0 or 5.1:
159 ansi+arrows|ANSI normal-mode home and cursor-keys,
160 kbs=^H,
161 kcub1=\E[D,
162 kcud1=\E[B,
163 kcuf1=\E[C,
164 kcuu1=\E[A,
165 khome=\E[H,
166
167 ansi+csr|ANSI scroll-region plus cursor save & restore,
168 csr=\E[%i%p1%d;%p2%dr,
169 rc=\E8,
170 sc=\E7,
171
172 ansi+cup|ANSI absolute cursor-addressing,
173 cup=\E[%i%p1%d;%p2%dH,
174 home=\E[H,
175
176 ansi+enq|ncurses extension for ANSI ENQ,
177 u6=\E[%i%d;%dR,
178 u7=\E[6n,
179 u8=\E[?%[;0123456789]c,
180 u9=\E[c,
181
182 ansi+erase|ANSI clear screen/line,
183 clear=\E[H\E[J,
184 ed=\E[J,
185 el=\E[K,
186
187 ansi+idc1|ANSI insert/delete one character,
188 dch1=\E[P,
189 ich1=\E[@,
190 rmir=\E[4l,
191 smir=\E[4h,
192
193 ansi+idc|ANSI insert/delete characters,
194 dch=\E[%p1%dP,
195 ich=\E[%p1%d@,
196 use=ansi+idc1,
197
198 ansi+idl1|ANSI insert/delete one line,
199 dl1=\E[M,
200 il1=\E[L,
201
202 ansi+idl|ANSI insert/delete lines,
203 dl=\E[%p1%dM,
204 il=\E[%p1%dL,
205 use=ansi+idl1,
206
207 ansi+inittabs|ANSI initial tab-stops,
208 it#8,
209 use=ansi+tabs,
210
211 ansi+local1|ANSI normal-mode cursor-keys,
212 cub1=\E[D,
213 cud1=\E[B,
214 cuf1=\E[C,
215 cuu1=\E[A,
216
217 ansi+local|ANSI normal-mode parameterized cursor-keys,
218 cub=\E[%p1%dD,
219 cud=\E[%p1%dB,
220 cuf=\E[%p1%dC,
221 cuu=\E[%p1%dA,
222 use=ansi+local1,
223
224 ansi+pp|ANSI printer port,
225 mc5i,
226 mc0=\E[i,
227 mc4=\E[4i,
228 mc5=\E[5i,
229
230 ansi+rep|ANSI repeat-character,
231 rep=%p1%c\E[%p2%{1}%-%db,
232
233 ansi+sgr|ANSI graphic renditions,
234 blink=\E[5m,
235 invis=\E[8m,
236 rev=\E[7m,
237 sgr=\E[0
238 %?
239 %p3
240 %t;7
241 %;
242 %?
243 %p4
244 %t;5
245 %;
246 %?
247 %p7
248 %t;8
249 %;
250 m,
251 sgr0=\E[0m,
252
253 ansi+sgrso|ANSI standout only,
254 rmso=\E[m,
255 smso=\E[7m,
256
257 ansi+sgrul|ANSI underline only,
258 rmul=\E[m,
259 smul=\E[4m,
260
261 ansi+sgrbold|ANSI graphic renditions; assuming terminal has bold; not dim,
262 bold=\E[1m,
263 sgr=\E[
264 %?
265 %p1
266 %t7;
267 %;
268 %?
269 %p2
270 %t4;
271 %;
272 %?
273 %p3
274 %t7;
275 %;
276 %?
277 %p4
278 %t5;
279 %;
280 %?
281 %p6
282 %t1;
283 %;
284 %?
285 %p7
286 %t8;
287 %;
288 m,
289 use=ansi+sgr,
290 use=ansi+sgrso,
291 use=ansi+sgrul,
292
293 ansi+sgrdim|ANSI graphic renditions; assuming terminal has dim; not bold,
294 dim=\E[2m,
295 sgr=\E[
296 %?
297 %p1
298 %t7;
299 %;
300 %?
301 %p2
302 %t4;
303 %;
304 %?
305 %p3
306 %t7;
307 %;
308 %?
309 %p4
310 %t5;
311 %;
312 %?
313 %p5
314 %t2;
315 %;
316 %?
317 %p7
318 %t8;
319 %;
320 m,
321 use=ansi+sgr,
322 use=ansi+sgrso,
323 use=ansi+sgrul,
324
325 ansi+tabs|ANSI tab-stops,
326 cbt=\E[Z,
327 ht=^I,
328 hts=\EH,
329 tbc=\E[3g,
330
331 # These were added after ncurses 6.0:
332 ansi+apparrows|ANSI application-mode home and cursor-keys,
333 kcub1=\EOD,
334 kcud1=\EOB,
335 kcuf1=\EOC,
336 kcuu1=\EOA,
337 khome=\EOH,
338 use=ansi+arrows,
339
340 ansi+cpr|ncurses extension for ANSI CPR,
341 u6=\E[%i%d;%dR,
342 u7=\E[6n,
343
344 ansi+rca2|ANSI relative cursor-addressing,
345 hpa=\E[%i%p1%dG,
346 vpa=\E[%i%p1%dd,
347
348 # Encode modifiers using parameters (see "Xterm Control Sequences" ctlseqs.ms).
349 # Note that this is unrelated to PCTERM.
350 #
351 # Some names are extensions allowed by ncurses, e.g.,
352 # kDN, kDN5, kDN6, kLFT5, kLFT6, kRIT5, kRIT6, kUP, kUP5, kUP6
353 #
354 # The uppercase names are made up, since there are no standards that apply.
355 # If they were limited to two characters, they could in principle be translated
356 # to termcap. However, termcap sizes are limited to 1023 bytes, so there is
357 # little point in ensuring that extended key names can be translated to
358 # termcap. A terminfo file can be up to 4096 bytes; using all extended keys
359 # that xterm can generate would in fact exceed that limit.
360 #
361 # The numbers correspond to the modifier parameters documented in Xterm
362 # Control Sequences:
363 #
364 # 2 Shift
365 # 3 Alt
366 # 4 Shift + Alt
367 # 5 Control
368 # 6 Shift + Control
369 # 7 Alt + Control
370 # 8 Shift + Alt + Control
371 #
372 # X/Open Curses defines some shift combinations, which are also used here
373 # where applicable. Since it does define some shift combinations, no number
374 # (2) is used for suffixing the made-up names. Some combinations are not
375 # useful, e.g., they may reboot your computer, or they may require too many
376 # fingers. I stopped at modifier 7, just to keep things simple -TD
377 #
378 # XTerm resources:
379 # ---------------
380 # The xterm+pcfn, xterm+pcf0, xterm+pcf1, xterm+pcf2 and xterm+pcf3 fragments
381 # correspond to default resource settings for xterm on a 104-key PC keyboard
382 # with 12 function-keys:
383 #
384 # *sunKeyboard:false
385 # *oldXtermFKeys:false
386 # *modifyCursorKeys:2
387 # *modifyFunctionKeys:2
388 # *ctrlFKeys:10
389 #
390 # The key numbers are computed based on the modifiers:
391 #
392 # kf1-kf12 are F1-F12
393 # kf13-kf24 are shift F1-F12
394 # kf25-kf36 are control F1-F12
395 # kf37-kf48 are control+shift F1-F12
396 # kf49-kf60 are alt F1-F12
397 # kf61-kf63 are shift-alt F1-F3
398 #
399 # Note that ncurses would allow definition of kf64 and beyond, if there were
400 # an application that required it.
401 #
402 xterm+pcfkeys|fragment for PC-style keys,
403 use=xterm+app,
404 use=xterm+pcf2,
405 use=xterm+pce2,
406 use=xterm+pcc2,
407
408 # This chunk is based on suggestions by Ailin Nemui and Nicholas Marriott, who
409 # asked for some of xterm's advanced features to be added to its terminfo
410 # entry. It defines extended capabilities not found in standard terminfo or
411 # termcap. These are useful in tmux, for instance, hence the name.
412 #
413 # One caveat in adding extended capabilities in ncurses is that if the names
414 # are longer than two characters, then they will not be visible through the
415 # termcap interface.
416 #
417 # Ms modifies the selection/clipboard. Its parameters are
418 # p1 = the storage unit (clipboard, selection or cut buffer)
419 # p2 = the base64-encoded clipboard content.
420 #
421 # Ss is used to set the cursor style as described by the DECSCUSR
422 # function to a block or underline.
423 # Se resets the cursor style to the terminal power-on default.
424 #
425 # Cs and Ce set and reset the cursor colour.
426 xterm+tmux|advanced xterm features used in tmux,
427 Cr=\E]112\E\\,
428 Cs=\E]12;%p1%s\E\\,
429 Ms=\E]52;%p1%s;%p2%s
430 \E\\,
431 Se=\E[2\sq,
432 Ss=\E[%p1%d\sq,
433 #
434 # The ctrlFKeys resource is only relevant to the xterm+pcfn and xterm+pcfN
435 # entries, since the modifyFunctionKeys resource overrides ctrlFKeys when it is
436 # positive. A different choice of ctrlFKeys would give a different set of
437 # function-key strings.
438 xterm+pcfn|fragment with modifyFunctionKeys:-1 and ctrlFKeys:10,
439 kf1=\EOP,
440 kf10=\E[21~,
441 kf11=\E[23~,
442 kf12=\E[24~,
443 kf13=\E[25~,
444 kf14=\E[26~,
445 kf15=\E[28~,
446 kf16=\E[29~,
447 kf17=\E[31~,
448 kf18=\E[32~,
449 kf19=\E[33~,
450 kf2=\EOQ,
451 kf20=\E[34~,
452 kf21=\E[42~,
453 kf22=\E[43~,
454 kf23=\E[44~,
455 kf24=\E[45~,
456 kf25=\E[46~,
457 kf26=\E[47~,
458 kf27=\E[48~,
459 kf28=\E[49~,
460 kf29=\E[50~,
461 kf3=\EOR,
462 kf30=\E[51~,
463 kf31=\E[52~,
464 kf32=\E[53~,
465 kf33=\E[54~,
466 kf34=\E[55~,
467 kf35=\E[56~,
468 kf36=\E[57~,
469 kf37=\E[58~,
470 kf38=\E[59~,
471 kf39=\E[60~,
472 kf4=\EOS,
473 kf40=\E[61~,
474 kf41=\E[62~,
475 kf42=\E[63~,
476 kf43=\E[64~,
477 kf44=\E[65~,
478 kf45=\E[66~,
479 kf46=\E[67~,
480 kf47=\E[68~,
481 kf48=\E[69~,
482 kf5=\E[15~,
483 kf6=\E[17~,
484 kf7=\E[18~,
485 kf8=\E[19~,
486 kf9=\E[20~,
487
488 # Changing ctrlFKeys to 12 would let us number the keys using just shift- and
489 # control- modifiers:
490 # kf1-kf12 are F1-F12
491 # kf13-kf24 are shift F1-F12
492 # kf25-kf36 are control F1-F12
493 # kf37-kf48 are control+shift F1-F12
494 xterm+pcfN|fragment with modifyFunctionKeys:-1 and ctrlFKeys:12,
495 kf1=\EOP,
496 kf10=\E[21~,
497 kf11=\E[23~,
498 kf12=\E[24~,
499 kf13=\E[25~,
500 kf14=\E[26~,
501 kf15=\E[28~,
502 kf16=\E[29~,
503 kf17=\E[31~,
504 kf18=\E[32~,
505 kf19=\E[33~,
506 kf2=\EOQ,
507 kf20=\E[34~,
508 kf21=\E[42~,
509 kf22=\E[43~,
510 kf23=\E[44~,
511 kf24=\E[45~,
512 kf25=\E[46~,
513 kf26=\E[47~,
514 kf27=\E[48~,
515 kf28=\E[49~,
516 kf29=\E[50~,
517 kf3=\EOR,
518 kf30=\E[51~,
519 kf31=\E[52~,
520 kf32=\E[53~,
521 kf33=\E[54~,
522 kf34=\E[55~,
523 kf35=\E[56~,
524 kf36=\E[57~,
525 kf37=\E[58~,
526 kf38=\E[59~,
527 kf39=\E[60~,
528 kf4=\EOS,
529 kf40=\E[61~,
530 kf41=\E[62~,
531 kf42=\E[63~,
532 kf43=\E[64~,
533 kf44=\E[65~,
534 kf45=\E[66~,
535 kf46=\E[67~,
536 kf47=\E[68~,
537 kf48=\E[69~,
538 kf5=\E[15~,
539 kf6=\E[17~,
540 kf7=\E[18~,
541 kf8=\E[19~,
542 kf9=\E[20~,
543
544 xterm+pcf0|fragment with modifyFunctionKeys:0,
545 kf1=\EOP,
546 kf10=\E[21~,
547 kf11=\E[23~,
548 kf12=\E[24~,
549 kf13=\EO2P,
550 kf14=\EO2Q,
551 kf15=\EO2R,
552 kf16=\EO2S,
553 kf17=\E[15;2~,
554 kf18=\E[17;2~,
555 kf19=\E[18;2~,
556 kf2=\EOQ,
557 kf20=\E[19;2~,
558 kf21=\E[20;2~,
559 kf22=\E[21;2~,
560 kf23=\E[23;2~,
561 kf24=\E[24;2~,
562 kf25=\EO5P,
563 kf26=\EO5Q,
564 kf27=\EO5R,
565 kf28=\EO5S,
566 kf29=\E[15;5~,
567 kf3=\EOR,
568 kf30=\E[17;5~,
569 kf31=\E[18;5~,
570 kf32=\E[19;5~,
571 kf33=\E[20;5~,
572 kf34=\E[21;5~,
573 kf35=\E[23;5~,
574 kf36=\E[24;5~,
575 kf37=\EO6P,
576 kf38=\EO6Q,
577 kf39=\EO6R,
578 kf4=\EOS,
579 kf40=\EO6S,
580 kf41=\E[15;6~,
581 kf42=\E[17;6~,
582 kf43=\E[18;6~,
583 kf44=\E[19;6~,
584 kf45=\E[20;6~,
585 kf46=\E[21;6~,
586 kf47=\E[23;6~,
587 kf48=\E[24;6~,
588 kf49=\EO3P,
589 kf5=\E[15~,
590 kf50=\EO3Q,
591 kf51=\EO3R,
592 kf52=\EO3S,
593 kf53=\E[15;3~,
594 kf54=\E[17;3~,
595 kf55=\E[18;3~,
596 kf56=\E[19;3~,
597 kf57=\E[20;3~,
598 kf58=\E[21;3~,
599 kf59=\E[23;3~,
600 kf6=\E[17~,
601 kf60=\E[24;3~,
602 kf61=\EO4P,
603 kf62=\EO4Q,
604 kf63=\EO4R,
605 kf7=\E[18~,
606 kf8=\E[19~,
607 kf9=\E[20~,
608
609 # This is almost the same as xterm+pcf2 because the unmodified keys all happen
610 # to have a pattern that forces the modifier to the same position.
611 xterm+pcf1|fragment with modifyFunctionKeys:1,
612 kf1=\EOP,
613 kf10=\E[21~,
614 kf11=\E[23~,
615 kf12=\E[24~,
616 kf13=\E[2P,
617 kf14=\E[2Q,
618 kf15=\E[2R,
619 kf16=\E[2S,
620 kf17=\E[15;2~,
621 kf18=\E[17;2~,
622 kf19=\E[18;2~,
623 kf2=\EOQ,
624 kf20=\E[19;2~,
625 kf21=\E[20;2~,
626 kf22=\E[21;2~,
627 kf23=\E[23;2~,
628 kf24=\E[24;2~,
629 kf25=\E[5P,
630 kf26=\E[5Q,
631 kf27=\E[5R,
632 kf28=\E[5S,
633 kf29=\E[15;5~,
634 kf3=\EOR,
635 kf30=\E[17;5~,
636 kf31=\E[18;5~,
637 kf32=\E[19;5~,
638 kf33=\E[20;5~,
639 kf34=\E[21;5~,
640 kf35=\E[23;5~,
641 kf36=\E[24;5~,
642 kf37=\E[6P,
643 kf38=\E[6Q,
644 kf39=\E[6R,
645 kf4=\EOS,
646 kf40=\E[6S,
647 kf41=\E[15;6~,
648 kf42=\E[17;6~,
649 kf43=\E[18;6~,
650 kf44=\E[19;6~,
651 kf45=\E[20;6~,
652 kf46=\E[21;6~,
653 kf47=\E[23;6~,
654 kf48=\E[24;6~,
655 kf49=\E[3P,
656 kf5=\E[15~,
657 kf50=\E[3Q,
658 kf51=\E[3R,
659 kf52=\E[3S,
660 kf53=\E[15;3~,
661 kf54=\E[17;3~,
662 kf55=\E[18;3~,
663 kf56=\E[19;3~,
664 kf57=\E[20;3~,
665 kf58=\E[21;3~,
666 kf59=\E[23;3~,
667 kf6=\E[17~,
668 kf60=\E[24;3~,
669 kf61=\E[4P,
670 kf62=\E[4Q,
671 kf63=\E[4R,
672 kf7=\E[18~,
673 kf8=\E[19~,
674 kf9=\E[20~,
675
676 xterm+pcf2|fragment with modifyFunctionKeys:2,
677 kf1=\EOP,
678 kf10=\E[21~,
679 kf11=\E[23~,
680 kf12=\E[24~,
681 kf13=\E[1;2P,
682 kf14=\E[1;2Q,
683 kf15=\E[1;2R,
684 kf16=\E[1;2S,
685 kf17=\E[15;2~,
686 kf18=\E[17;2~,
687 kf19=\E[18;2~,
688 kf2=\EOQ,
689 kf20=\E[19;2~,
690 kf21=\E[20;2~,
691 kf22=\E[21;2~,
692 kf23=\E[23;2~,
693 kf24=\E[24;2~,
694 kf25=\E[1;5P,
695 kf26=\E[1;5Q,
696 kf27=\E[1;5R,
697 kf28=\E[1;5S,
698 kf29=\E[15;5~,
699 kf3=\EOR,
700 kf30=\E[17;5~,
701 kf31=\E[18;5~,
702 kf32=\E[19;5~,
703 kf33=\E[20;5~,
704 kf34=\E[21;5~,
705 kf35=\E[23;5~,
706 kf36=\E[24;5~,
707 kf37=\E[1;6P,
708 kf38=\E[1;6Q,
709 kf39=\E[1;6R,
710 kf4=\EOS,
711 kf40=\E[1;6S,
712 kf41=\E[15;6~,
713 kf42=\E[17;6~,
714 kf43=\E[18;6~,
715 kf44=\E[19;6~,
716 kf45=\E[20;6~,
717 kf46=\E[21;6~,
718 kf47=\E[23;6~,
719 kf48=\E[24;6~,
720 kf49=\E[1;3P,
721 kf5=\E[15~,
722 kf50=\E[1;3Q,
723 kf51=\E[1;3R,
724 kf52=\E[1;3S,
725 kf53=\E[15;3~,
726 kf54=\E[17;3~,
727 kf55=\E[18;3~,
728 kf56=\E[19;3~,
729 kf57=\E[20;3~,
730 kf58=\E[21;3~,
731 kf59=\E[23;3~,
732 kf6=\E[17~,
733 kf60=\E[24;3~,
734 kf61=\E[1;4P,
735 kf62=\E[1;4Q,
736 kf63=\E[1;4R,
737 kf7=\E[18~,
738 kf8=\E[19~,
739 kf9=\E[20~,
740
741 xterm+pcf3|fragment with modifyFunctionKeys:3,
742 kf1=\EOP,
743 kf10=\E[21~,
744 kf11=\E[23~,
745 kf12=\E[24~,
746 kf13=\E[>1;2P,
747 kf14=\E[>1;2Q,
748 kf15=\E[>1;2R,
749 kf16=\E[>1;2S,
750 kf17=\E[>15;2~,
751 kf18=\E[>17;2~,
752 kf19=\E[>18;2~,
753 kf2=\EOQ,
754 kf20=\E[>19;2~,
755 kf21=\E[>20;2~,
756 kf22=\E[>21;2~,
757 kf23=\E[>23;2~,
758 kf24=\E[>24;2~,
759 kf25=\E[>1;5P,
760 kf26=\E[>1;5Q,
761 kf27=\E[>1;5R,
762 kf28=\E[>1;5S,
763 kf29=\E[>15;5~,
764 kf3=\EOR,
765 kf30=\E[>17;5~,
766 kf31=\E[>18;5~,
767 kf32=\E[>19;5~,
768 kf33=\E[>20;5~,
769 kf34=\E[>21;5~,
770 kf35=\E[>23;5~,
771 kf36=\E[>24;5~,
772 kf37=\E[>1;6P,
773 kf38=\E[>1;6Q,
774 kf39=\E[>1;6R,
775 kf4=\EOS,
776 kf40=\E[>1;6S,
777 kf41=\E[>15;6~,
778 kf42=\E[>17;6~,
779 kf43=\E[>18;6~,
780 kf44=\E[>19;6~,
781 kf45=\E[>20;6~,
782 kf46=\E[>21;6~,
783 kf47=\E[>23;6~,
784 kf48=\E[>24;6~,
785 kf49=\E[>1;3P,
786 kf5=\E[15~,
787 kf50=\E[>1;3Q,
788 kf51=\E[>1;3R,
789 kf52=\E[>1;3S,
790 kf53=\E[>15;3~,
791 kf54=\E[>17;3~,
792 kf55=\E[>18;3~,
793 kf56=\E[>19;3~,
794 kf57=\E[>20;3~,
795 kf58=\E[>21;3~,
796 kf59=\E[>23;3~,
797 kf6=\E[17~,
798 kf60=\E[>24;3~,
799 kf61=\E[>1;4P,
800 kf62=\E[>1;4Q,
801 kf63=\E[>1;4R,
802 kf7=\E[18~,
803 kf8=\E[19~,
804 kf9=\E[20~,
805 #
806 # The "PC-style" modifier scheme was introduced in xterm patch #94 (1999/3/27)
807 # and revised in patch #167 (2002/8/24).
808 #
809 # The original assignments from patch #94 for cursor-keys had some technical
810 # issues:
811 #
812 # A parameter for a function-key to represent a modifier is just more
813 # bits. But for a cursor-key it may change the behavior of the
814 # application. For instance, emacs decodes the first parameter of a
815 # cursor-key as a repeat count.
816 #
817 # A parameterized string should (really) not begin with SS3 (\EO).
818 # Rather, CSI (\E[) should be used.
819 #
820 # For these reasons, the original assignments were deprecated. For
821 # compatibility reasons, they are still available as a setting of xterm's
822 # modifyCursorKeys resource. These fragments list the modified cursor-keys
823 # that might apply to xterm+pcfkeys with different values of that resource.
824 xterm+pcc3|fragment with modifyCursorKeys:3,
825 kLFT=\E[>1;2D,
826 kRIT=\E[>1;2C,
827 kind=\E[>1;2B,
828 kri=\E[>1;2A,
829 kDN=\E[>1;2B,
830 kDN3=\E[>1;3B,
831 kDN4=\E[>1;4B,
832 kDN5=\E[>1;5B,
833 kDN6=\E[>1;6B,
834 kDN7=\E[>1;7B,
835 kLFT3=\E[>1;3D,
836 kLFT4=\E[>1;4D,
837 kLFT5=\E[>1;5D,
838 kLFT6=\E[>1;6D,
839 kLFT7=\E[>1;7D,
840 kRIT3=\E[>1;3C,
841 kRIT4=\E[>1;4C,
842 kRIT5=\E[>1;5C,
843 kRIT6=\E[>1;6C,
844 kRIT7=\E[>1;7C,
845 kUP=\E[>1;2A,
846 kUP3=\E[>1;3A,
847 kUP4=\E[>1;4A,
848 kUP5=\E[>1;5A,
849 kUP6=\E[>1;6A,
850 kUP7=\E[>1;7A,
851
852 xterm+pcc2|fragment with modifyCursorKeys:2,
853 kLFT=\E[1;2D,
854 kRIT=\E[1;2C,
855 kind=\E[1;2B,
856 kri=\E[1;2A,
857 kDN=\E[1;2B,
858 kDN3=\E[1;3B,
859 kDN4=\E[1;4B,
860 kDN5=\E[1;5B,
861 kDN6=\E[1;6B,
862 kDN7=\E[1;7B,
863 kLFT3=\E[1;3D,
864 kLFT4=\E[1;4D,
865 kLFT5=\E[1;5D,
866 kLFT6=\E[1;6D,
867 kLFT7=\E[1;7D,
868 kRIT3=\E[1;3C,
869 kRIT4=\E[1;4C,
870 kRIT5=\E[1;5C,
871 kRIT6=\E[1;6C,
872 kRIT7=\E[1;7C,
873 kUP=\E[1;2A,
874 kUP3=\E[1;3A,
875 kUP4=\E[1;4A,
876 kUP5=\E[1;5A,
877 kUP6=\E[1;6A,
878 kUP7=\E[1;7A,
879
880 xterm+pcc1|fragment with modifyCursorKeys:1,
881 kLFT=\E[2D,
882 kRIT=\E[2C,
883 kind=\E[2B,
884 kri=\E[2A,
885 kDN=\E[2B,
886 kDN3=\E[3B,
887 kDN4=\E[4B,
888 kDN5=\E[5B,
889 kDN6=\E[6B,
890 kDN7=\E[7B,
891 kLFT3=\E[3D,
892 kLFT4=\E[4D,
893 kLFT5=\E[5D,
894 kLFT6=\E[6D,
895 kLFT7=\E[7D,
896 kRIT3=\E[3C,
897 kRIT4=\E[4C,
898 kRIT5=\E[5C,
899 kRIT6=\E[6C,
900 kRIT7=\E[7C,
901 kUP=\E[2A,
902 kUP3=\E[3A,
903 kUP4=\E[4A,
904 kUP5=\E[5A,
905 kUP6=\E[6A,
906 kUP7=\E[7A,
907
908 xterm+pcc0|fragment with modifyCursorKeys:0,
909 kLFT=\EO2D,
910 kRIT=\EO2C,
911 kind=\EO2B,
912 kri=\EO2A,
913 kDN=\EO2B,
914 kDN3=\EO3B,
915 kDN4=\EO4B,
916 kDN5=\EO5B,
917 kDN6=\EO6B,
918 kDN7=\EO7B,
919 kLFT3=\EO3D,
920 kLFT4=\EO4D,
921 kLFT5=\EO5D,
922 kLFT6=\EO6D,
923 kLFT7=\EO7D,
924 kRIT3=\EO3C,
925 kRIT4=\EO4C,
926 kRIT5=\EO5C,
927 kRIT6=\EO6C,
928 kRIT7=\EO7C,
929 kUP=\EO2A,
930 kUP3=\EO3A,
931 kUP4=\EO4A,
932 kUP5=\EO5A,
933 kUP6=\EO6A,
934 kUP7=\EO7A,
935
936 # The home/end keys on the editing keypad are also treated as cursor keys.
937 xterm+pce3|editing fragment with modifyCursorKeys:3,
938 kDC=\E[>3;2~,
939 kEND=\E[>1;2F,
940 kHOM=\E[>1;2H,
941 kIC=\E[>2;2~,
942 kNXT=\E[>6;2~,
943 kPRV=\E[>5;2~,
944 kDC3=\E[>3;3~,
945 kDC4=\E[>3;4~,
946 kDC5=\E[>3;5~,
947 kDC6=\E[>3;6~,
948 kDC7=\E[>3;7~,
949 kEND3=\E[>1;3F,
950 kEND4=\E[>1;4F,
951 kEND5=\E[>1;5F,
952 kEND6=\E[>1;6F,
953 kEND7=\E[>1;7F,
954 kHOM3=\E[>1;3H,
955 kHOM4=\E[>1;4H,
956 kHOM5=\E[>1;5H,
957 kHOM6=\E[>1;6H,
958 kHOM7=\E[>1;7H,
959 kIC3=\E[>2;3~,
960 kIC4=\E[>2;4~,
961 kIC5=\E[>2;5~,
962 kIC6=\E[>2;6~,
963 kIC7=\E[>2;7~,
964 kNXT3=\E[>6;3~,
965 kNXT4=\E[>6;4~,
966 kNXT5=\E[>6;5~,
967 kNXT6=\E[>6;6~,
968 kNXT7=\E[>6;7~,
969 kPRV3=\E[>5;3~,
970 kPRV4=\E[>5;4~,
971 kPRV5=\E[>5;5~,
972 kPRV6=\E[>5;6~,
973 kPRV7=\E[>5;7~,
974 use=xterm+pce0,
975
976 xterm+pce2|editing fragment with modifyCursorKeys:2,
977 kDC=\E[3;2~,
978 kEND=\E[1;2F,
979 kHOM=\E[1;2H,
980 kIC=\E[2;2~,
981 kNXT=\E[6;2~,
982 kPRV=\E[5;2~,
983 kDC3=\E[3;3~,
984 kDC4=\E[3;4~,
985 kDC5=\E[3;5~,
986 kDC6=\E[3;6~,
987 kDC7=\E[3;7~,
988 kEND3=\E[1;3F,
989 kEND4=\E[1;4F,
990 kEND5=\E[1;5F,
991 kEND6=\E[1;6F,
992 kEND7=\E[1;7F,
993 kHOM3=\E[1;3H,
994 kHOM4=\E[1;4H,
995 kHOM5=\E[1;5H,
996 kHOM6=\E[1;6H,
997 kHOM7=\E[1;7H,
998 kIC3=\E[2;3~,
999 kIC4=\E[2;4~,
1000 kIC5=\E[2;5~,
1001 kIC6=\E[2;6~,
1002 kIC7=\E[2;7~,
1003 kNXT3=\E[6;3~,
1004 kNXT4=\E[6;4~,
1005 kNXT5=\E[6;5~,
1006 kNXT6=\E[6;6~,
1007 kNXT7=\E[6;7~,
1008 kPRV3=\E[5;3~,
1009 kPRV4=\E[5;4~,
1010 kPRV5=\E[5;5~,
1011 kPRV6=\E[5;6~,
1012 kPRV7=\E[5;7~,
1013 use=xterm+pce0,
1014
1015 xterm+pce1|editing fragment with modifyCursorKeys:1,
1016 kDC=\E[3;2~,
1017 kEND=\E[2F,
1018 kHOM=\E[2H,
1019 kIC=\E[2;2~,
1020 kNXT=\E[6;2~,
1021 kPRV=\E[5;2~,
1022 kDC3=\E[3;3~,
1023 kDC4=\E[3;4~,
1024 kDC5=\E[3;5~,
1025 kDC6=\E[3;6~,
1026 kDC7=\E[3;7~,
1027 kEND3=\E[3F,
1028 kEND4=\E[4F,
1029 kEND5=\E[5F,
1030 kEND6=\E[6F,
1031 kEND7=\E[7F,
1032 kHOM3=\E[3H,
1033 kHOM4=\E[4H,
1034 kHOM5=\E[5H,
1035 kHOM6=\E[6H,
1036 kHOM7=\E[7H,
1037 kIC3=\E[2;3~,
1038 kIC4=\E[2;4~,
1039 kIC5=\E[2;5~,
1040 kIC6=\E[2;6~,
1041 kIC7=\E[2;7~,
1042 kNXT3=\E[6;3~,
1043 kNXT4=\E[6;4~,
1044 kNXT5=\E[6;5~,
1045 kNXT6=\E[6;6~,
1046 kNXT7=\E[6;7~,
1047 kPRV3=\E[5;3~,
1048 kPRV4=\E[5;4~,
1049 kPRV5=\E[5;5~,
1050 kPRV6=\E[5;6~,
1051 kPRV7=\E[5;7~,
1052 use=xterm+pce0,
1053
1054 xterm+pce0|editing fragment with modifyCursorKeys:0,
1055 kDC=\E[3;2~,
1056 kEND=\EO2F,
1057 kHOM=\EO2H,
1058 kIC=\E[2;2~,
1059 kNXT=\E[6;2~,
1060 kPRV=\E[5;2~,
1061 kDC3=\E[3;3~,
1062 kDC4=\E[3;4~,
1063 kDC5=\E[3;5~,
1064 kDC6=\E[3;6~,
1065 kDC7=\E[3;7~,
1066 kEND3=\EO3F,
1067 kEND4=\EO4F,
1068 kEND5=\EO5F,
1069 kEND6=\EO6F,
1070 kEND7=\EO7F,
1071 kHOM3=\EO3H,
1072 kHOM4=\EO4H,
1073 kHOM5=\EO5H,
1074 kHOM6=\EO6H,
1075 kHOM7=\EO7H,
1076 kIC3=\E[2;3~,
1077 kIC4=\E[2;4~,
1078 kIC5=\E[2;5~,
1079 kIC6=\E[2;6~,
1080 kIC7=\E[2;7~,
1081 kNXT3=\E[6;3~,
1082 kNXT4=\E[6;4~,
1083 kNXT5=\E[6;5~,
1084 kNXT6=\E[6;6~,
1085 kNXT7=\E[6;7~,
1086 kPRV3=\E[5;3~,
1087 kPRV4=\E[5;4~,
1088 kPRV5=\E[5;5~,
1089 kPRV6=\E[5;6~,
1090 kPRV7=\E[5;7~,
1091 use=vt220+pcedit,
1092
1093 ecma+italics|ECMA-48 italics,
1094 ritm=\E[23m,
1095 sitm=\E[3m,
1096
1097 # The rmxx/smxx capabilities are an ncurses extension
1098 ecma+strikeout|ECMA-48 strikeout/crossed-out,
1099 rmxx=\E[29m,
1100 smxx=\E[9m,
1101
1102 # ECMA-48 does not include the VT100 indexing and scroll-margins. It has its
1103 # own variation.
1104 ecma+index|ECMA-48 scroll up/down,
1105 indn=\E[%p1%dS,
1106 rin=\E[%p1%dT,
1107
1108 # The XM capability is an ncurses extension
1109 xterm+sm+1006|xterm SGR-mouse,
1110 kmous=\E[<,
1111 XM=\E[?1006;1000
1112 %?
1113 %p1%{1}%=
1114 %th
1115 %e
1116 l
1117 %;,
1118 xm=\E[<%i
1119 %p3%d;
1120 %p1%d;
1121 %p2%d;
1122 %?
1123 %p4
1124 %tM
1125 %e
1126 m
1127 %;,
1128
1129 # By default, ncurses knows that xterm private mode 1000 enables/disables
1130 # the X11 xterm mouse protocol. So XM is not needed here, except for clarity.
1131 xterm+x11mouse|X11 xterm mouse protocol,
1132 kmous=\E[M,
1133 XM=\E[?1000
1134 %?
1135 %p1%{1}%=
1136 %th
1137 %e
1138 l
1139 %;,
1140 xm=\E[M
1141 %?
1142 %p4
1143 %t
1144 %p3
1145 %e%{3}
1146 %;
1147 %'\s'%+%c
1148 %p2%'!'%+%c
1149 %p1%'!'%+%c,
1150
1151 # xterm patch #224 2007/2/11 added private mode 1004, for enabling/disabling
1152 # focus in/out event reporting. The 1004 is normally part of XM in a different
1153 # building-block, e.g., for reporting any events.
1154 xterm+focus|xterm focus-in/out event "keys",
1155 XF,
1156 fd=\E[?1004l,
1157 fe=\E[?1004h,
1158 kxIN=\E[I,
1159 kxOUT=\E[O,
1160
1161 # https://invisible-island.net/xterm/xterm-paste64.html
1162 #
1163 # Bracketed paste was introduced by xterm patch #203 in May 2005, as part of a
1164 # larger feature for manipulating the clipboard selection. Few terminals aside
1165 # from xterm fully implement the clipboard feature, but several copy this
1166 # detail. The names for the extended capabilities here were introduced by vim
1167 # in January 2017, but used internally. In 2023, vim patch 9.0.1117 is needed
1168 # to work with this change.
1169 bracketed+paste|xterm bracketed paste,
1170 BD=\E[?2004l,
1171 BE=\E[?2004h,
1172 PE=\E[201~,
1173 PS=\E[200~,
1174
1175 # https://invisible-island.net/xterm/xterm.log.html#xterm_354
1176 #
1177 # The response is a DSR sequence identifying the version: DCS > | text ST
1178 # For example:
1179 # ^[P>|XTerm(354)^[\
1180 # This generic building-block matches ncurses.
1181 report+version|Report xterm name and version (XTVERSION).,
1182 XR=\E[>0q,
1183 xr=\EP>\\|[\s-~]+\E\\\\,
1184 use=report+da2,
1185
1186 # Vim uses RV to denote the secondary device attributes. Xterm documents the
1187 # - first parameter as the terminal type (extending it to VT100),
1188 # - the second as the patch number for xterm, and
1189 # - the third parameter as zero.
1190 # Other terminals may provide useful responses, though few are documented.
1191 #
1192 # Since patch #280 2012/06/24, xterm by default reports itself as a VT420.
1193 # This generic building-block matches ncurses.
1194 report+da2|report secondary device attributes (DA2),
1195 RV=\E[>c,
1196 rv=\E\\[>[0-9]+;[0-9]+;[0-9]+c,
1197
1198 # This chunk is used for building the VT220/Sun/PC keyboard variants.
1199 xterm-basic|modern xterm terminal emulator - common,
1200 OTbs,
1201 am,
1202 bce,
1203 km,
1204 mir,
1205 msgr,
1206 xenl,
1207 AX,
1208 XT,
1209 colors#8,
1210 cols#80,
1211 lines#24,
1212 pairs#64,
1213 acsc=``aaffggiijjkkllmmnnooppqqr
1214 rssttuuvvwwxxyyzz{{||}}~~,
1215 bel=^G,
1216 civis=\E[?25l,
1217 clear=\E[H\E[2J,
1218 cnorm=\E[?12l\E[?25h,
1219 cr=\r,
1220 cub1=^H,
1221 cud1=\n,
1222 cup=\E[%i%p1%d;%p2%dH,
1223 cvvis=\E[?12;25h,
1224 dch=\E[%p1%dP,
1225 dch1=\E[P,
1226 ech=\E[%p1%dX,
1227 ed=\E[J,
1228 el=\E[K,
1229 el1=\E[1K,
1230 flash=\E[?5h$<100/>\E[?5l,
1231 home=\E[H,
1232 ich=\E[%p1%d@,
1233 ind=\n,
1234 is2=\E[!p\E[?3;4l\E[4l\E>,
1235 kmous=\E[M,
1236 meml=\El,
1237 memu=\Em,
1238 op=\E[39;49m,
1239 ri=\EM,
1240 rmacs=\E(B,
1241 rmam=\E[?7l,
1242 rmir=\E[4l,
1243 rmkx=\E[?1l\E>,
1244 rmm=\E[?1034l,
1245 rmso=\E[27m,
1246 rmul=\E[24m,
1247 rs1=\Ec,
1248 rs2=\E[!p\E[?3;4l\E[4l\E>,
1249 setab=\E[4%p1%dm,
1250 setaf=\E[3%p1%dm,
1251 setb=\E[4
1252 %?
1253 %p1%{1}%=
1254 %t4
1255 %e
1256 %p1%{3}%=
1257 %t6
1258 %e
1259 %p1%{4}%=
1260 %t1
1261 %e
1262 %p1%{6}%=
1263 %t3
1264 %e
1265 %p1%d
1266 %;
1267 m,
1268 setf=\E[3
1269 %?
1270 %p1%{1}%=
1271 %t4
1272 %e
1273 %p1%{3}%=
1274 %t6
1275 %e
1276 %p1%{4}%=
1277 %t1
1278 %e
1279 %p1%{6}%=
1280 %t3
1281 %e
1282 %p1%d
1283 %;
1284 m,
1285 sgr=
1286 %?
1287 %p9
1288 %t\E(0
1289 %e
1290 \E(B
1291 %;
1292 \E[0
1293 %?
1294 %p6
1295 %t;1
1296 %;
1297 %?
1298 %p5
1299 %t;2
1300 %;
1301 %?
1302 %p2
1303 %t;4
1304 %;
1305 %?
1306 %p1
1307 %p3%|
1308 %t;7
1309 %;
1310 %?
1311 %p4
1312 %t;5
1313 %;
1314 %?
1315 %p7
1316 %t;8
1317 %;
1318 m,
1319 sgr0=\E(B\E[m,
1320 smacs=\E(0,
1321 smam=\E[?7h,
1322 smir=\E[4h,
1323 smkx=\E[?1h\E=,
1324 smm=\E[?1034h,
1325 E3=\E[3J,
1326 use=ansi+csr,
1327 use=ansi+enq,
1328 use=ansi+idl,
1329 use=ansi+inittabs,
1330 use=ansi+local,
1331 use=ansi+pp,
1332 use=ansi+rca2,
1333 use=ansi+sgrbold,
1334 use=ansi+sgrdim,
1335 use=xterm+alt+title,
1336 use=xterm+kbs,
1337
1338 xterm+nofkeys|building block for xterm fkey-variants,
1339 npc,
1340 kcbt=\E[Z,
1341 kent=\EOM,
1342 nel=\EE,
1343 use=ecma+index,
1344 use=ansi+rep,
1345 use=ecma+strikeout,
1346 use=vt420+lrmm,
1347 use=xterm+sm+1006,
1348 use=xterm+tmux,
1349 use=xterm+focus,
1350 use=ecma+italics,
1351 use=xterm+keypad,
1352 use=xterm-basic,
1353 #
1354 # The xterm-new description has all of the features, but is not completely
1355 # compatible with vt220. If you are using a Sun or PC keyboard, set the
1356 # sunKeyboard resource to true:
1357 # + maps the editing keypad
1358 # + interprets control-function-key as a second array of keys, so a
1359 # 12-fkey keyboard can support vt220's 20-fkeys.
1360 # + maps numeric keypad "+" to ",".
1361 # + uses DEC-style control sequences for the application keypad.
1362 #
1363 # Some packagers modify xterm's resource definitions to provide extra function
1364 # keys by using the shift-modifier in the translations resource. However, that
1365 # interferes with the DECUDK functionality.
1366 #
1367 xterm-vt220|xterm emulating vt220,
1368 npc,
1369 kcbt=\E[Z,
1370 kend=\E[4~,
1371 kf10=\E[21~,
1372 kf11=\E[23~,
1373 kf12=\E[24~,
1374 kf13=\E[25~,
1375 kf14=\E[26~,
1376 kf15=\E[28~,
1377 kf16=\E[29~,
1378 kf17=\E[31~,
1379 kf18=\E[32~,
1380 kf19=\E[33~,
1381 kf20=\E[34~,
1382 kf5=\E[15~,
1383 kf6=\E[17~,
1384 kf7=\E[18~,
1385 kf8=\E[19~,
1386 kf9=\E[20~,
1387 khome=\E[1~,
1388 kmous=\E[M,
1389 nel=\EE,
1390 use=xterm+app,
1391 use=vt220+keypad,
1392 use=vt220+pcedit,
1393 use=ecma+italics,
1394 use=ecma+index,
1395 use=ansi+rep,
1396 use=ecma+strikeout,
1397 use=xterm+focus,
1398 use=xterm+sm+1006,
1399 use=xterm+tmux,
1400 use=xterm+keypad,
1401 use=xterm-basic,
1402 #
1403 xterm-vt52|xterm emulating dec vt52,
1404 cols#80,
1405 it#8,
1406 lines#24,
1407 acsc=``aaffggjjkkllmmnnooppqqrrs
1408 sttuuvvwwxxyyzz{{||}}~~,
1409 bel=^G,
1410 clear=\EH\EJ,
1411 cr=\r,
1412 cub1=\ED,
1413 cud1=\EB,
1414 cuf1=\EC,
1415 cup=\EY%p1%'\s'%+%c%p2%'\s'%+%c,
1416 cuu1=\EA,
1417 ed=\EJ,
1418 el=\EK,
1419 home=\EH,
1420 ht=^I,
1421 ind=\n,
1422 kcub1=\ED,
1423 kcud1=\EB,
1424 kcuf1=\EC,
1425 kcuu1=\EA,
1426 nel=\r\n,
1427 ri=\EI,
1428 rmacs=\EG,
1429 smacs=\EF,
1430 use=xterm+kbs,
1431 use=vt52+keypad,
1432
1433 # from ncurses 6.2:
1434 # DECScope of course had no "function keys", but this building block assigns
1435 # the three blank keys at the top of the auxiliary (numeric) keypad, using
1436 # the same analogy as vt100 (also lacking function-keys).
1437 #
1438 # These assignments use the same layout for 0-9 as vt100+keypad; the vt52
1439 # keypad had its cursor-keys on the right-column as shown -TD
1440 # _______________________________________
1441 # | PF1 | PF2 | PF3 | c-up |
1442 # | \EP | \EQ | \ER | \EA |
1443 # |_kf1__k1_|_kf2__k2_|_kf3__k3_|kcuu1_k4_|
1444 # | 7 8 9 c-down |
1445 # | \E?w | \E?x | \E?y | \EB |
1446 # |_kf9__k9_|_kf10_k;_|_kf0__k0_|kcud1____|
1447 # | 4 | 5 | 6 | c-right |
1448 # | \E?t | \E?u | \E?v | \EC |
1449 # |_kf5__k5_|_kf6__k6_|_kf7__k7_|kcuf1_k8_|
1450 # | 1 | 2 | 3 | c-left |
1451 # | \E?q | \E?r | \E?s | \ED |
1452 # |_ka1__K1_|_kb2__K2_|_ka3__K3_|kcub1____|
1453 # | 0 | . | enter |
1454 # | \E?p | \E?n | \E?M |
1455 # |___kc1_______K4____|_kc3__K5_|_kent_@8_|
1456 #
1457 vt52+keypad|DECScope auxiliary keypad,
1458 ka1=\E?q,
1459 ka3=\E?s,
1460 kb2=\E?r,
1461 kc1=\E?p,
1462 kc3=\E?n,
1463 kf0=\E?y,
1464 kf1=\EP,
1465 kf2=\EQ,
1466 kf3=\ER,
1467 kf5=\E?t,
1468 kf6=\E?u,
1469 kf7=\E?v,
1470 kf8=\E?w,
1471 kf9=\E?x,
1472 #
1473 # Sun does not number the function keys this way in their sparse termcap; their
1474 # terminal descriptions ignore the keypads. kb(7M) states that there are codes
1475 # reserved for 64 function keys, 16 each in left, right, top and bottom. Each
1476 # keyboard type has a different number of function keys in different
1477 # arrangements. Using xkeycaps for reference:
1478 #
1479 # Type 3: left 10, top 9, right 15
1480 # ------
1481 # kf1-kf9 are XK_F1-XK_F9
1482 # There is no kf10 on this keyboard type.
1483 # kf11-kf20 are keysyms XK_L1 through XK_L10.
1484 # kf31-kf45 are keysyms XK_R1 through XK_R15.
1485 #
1486 # However, X's keysymdef.h is hard-coded to make
1487 # XK_L1==XK_F11 and
1488 # XK_R1==XK_F21,
1489 # by someone who was unfamiliar with terminal types other than Sun's. So
1490 # xterm uses the internal X keysymbols, but the terminfo entry uses the Sun
1491 # numbering scheme.
1492 #
1493 # Type 4: left 11, top 12, right 15
1494 # ------
1495 # The left-keypad contains an unnumbered Help-key.
1496 # The right-keypad also contains NumLock, Ins, Del, Enter, + and - keys which
1497 # do not appear to be part of the R-sequence.
1498 #
1499 # Type 5: left 9, top 12, right (more than one keypad)
1500 # ------
1501 # These keyboards do not use the same naming convention, look like a hybrid of
1502 # the type 4 and IBM keyboards.
1503 #
1504 # XTerm resources:
1505 # ---------------
1506 # Set the modifyFunctionKeys resource to negative (-1) to make it simple to
1507 # enter the higher function-key values using shift- and control-modifiers.
1508 #
1509 xterm-sun|xterm with sun function keys,
1510 kb2=\E[218z,
1511 kcpy=\E[197z,
1512 kdch1=\E[3z,
1513 kend=\E[220z,
1514 kf1=\E[224z,
1515 kf10=\E[233z,
1516 kf11=\E[192z,
1517 kf12=\E[193z,
1518 kf13=\E[194z,
1519 kf14=\E[195z,
1520 kf15=\E[196z,
1521 kf17=\E[198z,
1522 kf18=\E[199z,
1523 kf19=\E[200z,
1524 kf2=\E[225z,
1525 kf20=\E[201z,
1526 kf3=\E[226z,
1527 kf31=\E[208z,
1528 kf32=\E[209z,
1529 kf33=\E[210z,
1530 kf34=\E[211z,
1531 kf35=\E[212z,
1532 kf36=\E[213z,
1533 kf38=\E[215z,
1534 kf4=\E[227z,
1535 kf40=\E[217z,
1536 kf42=\E[219z,
1537 kf44=\E[221z,
1538 kf45=\E[222z,
1539 kf46=\E[234z,
1540 kf47=\E[235z,
1541 kf5=\E[228z,
1542 kf6=\E[229z,
1543 kf7=\E[230z,
1544 kf8=\E[231z,
1545 kf9=\E[232z,
1546 kfnd=\E[200z,
1547 khlp=\E[196z,
1548 khome=\E[214z,
1549 kich1=\E[2z,
1550 knp=\E[222z,
1551 kpp=\E[216z,
1552 kund=\E[195z,
1553 use=xterm+kbs,
1554 use=ansi+apparrows,
1555 use=xterm+nopcfkeys,
1556 use=xterm+nofkeys,
1557
1558 # Note: normally xterm supports modified function-keys as described in
1559 # XTerm - "Other" modified keys
1560 # https://invisible-island.net/xterm/modified-keys.html
1561 #
1562 # However, xterm-hp, xterm-sco and xterm-sun assume no modifiers. Here is
1563 # a simple script which demonstrates these descriptions:
1564 # #!/bin/sh
1565 # export TERM=xterm-$1
1566 # xterm \
1567 # -kt $1 \
1568 # -fs 16 -fa mono \
1569 # -title $TERM \
1570 # -tn $TERM \
1571 # -xrm '*modifyCursorKeys:-1' \
1572 # -xrm '*modifyFunctionKeys:-1' \
1573 # -e tack
1574 # e.g., "foo sun" if the script is named "foo" -TD
1575
1576 xterm-hp|xterm with hpterm function keys,
1577 kclr=\EJ,
1578 kcub1=\ED,
1579 kcud1=\EB,
1580 kcuf1=\EC,
1581 kcuu1=\EA,
1582 kdch1=\EP,
1583 kend=\EF,
1584 kf1=\Ep,
1585 kf2=\Eq,
1586 kf3=\Er,
1587 kf4=\Es,
1588 kf5=\Et,
1589 kf6=\Eu,
1590 kf7=\Ev,
1591 kf8=\Ew,
1592 khome=\Eh,
1593 kich1=\EQ,
1594 knp=\ES,
1595 kpp=\ET,
1596 use=xterm+nofkeys,
1597 use=xterm+nopcfkeys,
1598 #
1599 # scoterm implements 48 function-keys using shift- and control-modifiers to
1600 # multiple 12 function-keys. X has a hard-coded limit of 35 function-keys,
1601 # but xterm can represent larger values.
1602 #
1603 # XTerm resources:
1604 # ---------------
1605 # Set the modifyFunctionKeys resource to negative (-1) to make it simple to
1606 # enter the higher function-key values using shift- and control-modifiers.
1607 #
1608 # Also, set ctrlFKeys resource to 12 (the default is 10) to make xterm see 48
1609 # function-keys on a keyboard with 12 function-keys and 4 control/shift
1610 # modifier combinations.
1611 #
1612 xterm-sco|xterm with SCO function keys,
1613 kbeg=\E[E,
1614 kdch1=^?,
1615 kf1=\E[M,
1616 kf10=\E[V,
1617 kf11=\E[W,
1618 kf12=\E[X,
1619 kf13=\E[Y,
1620 kf14=\E[Z,
1621 kf15=\E[a,
1622 kf16=\E[b,
1623 kf17=\E[c,
1624 kf18=\E[d,
1625 kf19=\E[e,
1626 kf2=\E[N,
1627 kf20=\E[f,
1628 kf21=\E[g,
1629 kf22=\E[h,
1630 kf23=\E[i,
1631 kf24=\E[j,
1632 kf25=\E[k,
1633 kf26=\E[l,
1634 kf27=\E[m,
1635 kf28=\E[n,
1636 kf29=\E[o,
1637 kf3=\E[O,
1638 kf30=\E[p,
1639 kf31=\E[q,
1640 kf32=\E[r,
1641 kf33=\E[s,
1642 kf34=\E[t,
1643 kf35=\E[u,
1644 kf36=\E[v,
1645 kf37=\E[w,
1646 kf38=\E[x,
1647 kf39=\E[y,
1648 kf4=\E[P,
1649 kf40=\E[z,
1650 kf41=\E[@,
1651 kf42=\E[[,
1652 kf43=\E[\\,
1653 kf44=\E[],
1654 kf45=\E[\^,
1655 kf46=\E[_,
1656 kf47=\E[`,
1657 kf48=\E[{,
1658 kf5=\E[Q,
1659 kf6=\E[R,
1660 kf7=\E[S,
1661 kf8=\E[T,
1662 kf9=\E[U,
1663 kich1=\E[L,
1664 kmous=\E[>M,
1665 knp=\E[G,
1666 kpp=\E[I,
1667 use=vt100+noapp,
1668 use=xterm+nofkeys,
1669 #
1670 # Other variants (these are all very old entries, from X11R5):
1671 xterm-24|xterms|vs100|xterm terminal emulator (X Window System),
1672 lines#24,
1673 use=xterm-old,
1674 xterm-65|xterm with tall window 65x80 (X Window System),
1675 lines#65,
1676 use=xterm-old,
1677 xterm-bold|xterm with bold instead of underline (X Window System),
1678 sgr=
1679 %?
1680 %p9
1681 %t\016
1682 %e
1683 \017
1684 %;
1685 B\E[0
1686 %?
1687 %p6
1688 %t;1
1689 %;
1690 %?
1691 %p2
1692 %t;1
1693 %;
1694 %?
1695 %p1
1696 %p3%|
1697 %t;7
1698 %;
1699 m,
1700 smso=\E[7m,
1701 smul=\E[1m,
1702 use=xterm-old,
1703 xterm-boldso|xterm with bold for standout (X Window System),
1704 rmso=\E[m,
1705 smso=\E[1m,
1706 use=xterm-old,
1707 xterm-mono|monochrome xterm,
1708 use=xterm-old,
1709 #
1710 # VTxxx terminals are usually set up so that full-screen applications will use
1711 # the cursor application mode strings. This is good for full-screen
1712 # applications, including legacy applications which may have hard-coded
1713 # behavior, but bad for interactive shells (e.g., tcsh, bash) which use arrow
1714 # keys to scroll through a history of command strings.
1715 #
1716 # To see the difference between normal/application modes, consider this example:
1717 # + In normal (non-application) mode, the terminal transmits a down-arrow
1718 # as \E[C, which happens to echo as a down-arrow.
1719 # + In application mode the terminal transmits \EOC, which echoes as C.
1720 # That is because the \EO is the SS3 control, which says to use the
1721 # character from the G3 character set for the next cell.
1722 #
1723 # One example of hard-coded behavior would be for applications written to work
1724 # with VT52 and VT100 terminals. If the application's parser ignores 'O' and
1725 # '?' characters after the escape, then the cursor and keypad strings for the
1726 # two terminals are the same. (Indeed, one of the first curses applications
1727 # which I used did something like this to cover "ANSI" terminals -TD).
1728 #
1729 # To make this work (leaving the cursor keys in normal mode), we have to adjust
1730 # the terminal initialization sequences:
1731 #
1732 # smkx/rmkx set/reset the cursor and keypad application modes. We retain
1733 # the latter (otherwise many applications fail).
1734 #
1735 # smcup/rmcup set/restore cursor-addressing mode for full-screen
1736 # applications. For xterm, this normally means the alternate
1737 # screen, which is not compatible with interactive shells. Some
1738 # programs are "smart" and disable these.
1739 #
1740 xterm-noapp|xterm with cursor keys in normal mode,
1741 rmcup@,
1742 rmkx=\E>,
1743 smcup@,
1744 smkx=\E=,
1745 use=vt100+noapp,
1746 use=xterm,
1747
1748 vt100+noapp|fragment with cursor keys in normal mode,
1749 kcub1=\E[D,
1750 kcud1=\E[B,
1751 kcuf1=\E[C,
1752 kcuu1=\E[A,
1753 use=vt100+noapp+pc,
1754
1755 xterm+acs|ISO-2022 alternate character-switching for xterm,
1756 acsc=``aaffggiijjkkllmmnnooppqqr
1757 rssttuuvvwwxxyyzz{{||}}~~,
1758 enacs@,
1759 rmacs=\E(B,
1760 smacs=\E(0,
1761
1762 xterm+app|fragment with cursor keys in application mode,
1763 kcub1=\EOD,
1764 kcud1=\EOB,
1765 kcuf1=\EOC,
1766 kcuu1=\EOA,
1767 use=xterm+app+pc,
1768
1769 vt100+noapp+pc|fragment for noapp pc-style home/end,
1770 kend=\E[F,
1771 khome=\E[H,
1772
1773 xterm+app+pc|fragment for app pc-style home/end,
1774 kend=\EOF,
1775 khome=\EOH,
1776
1777 vt220+pcedit|fragment for 6-key editing-keypad,
1778 kdch1=\E[3~,
1779 kich1=\E[2~,
1780 knp=\E[6~,
1781 kpp=\E[5~,
1782 use=xterm+pc+edit,
1783
1784 xterm+decedit|fragment for vt220 6-key editing-keypad,
1785 kdch1=\E[3~,
1786 kich1=\E[2~,
1787 knp=\E[6~,
1788 kpp=\E[5~,
1789 use=xterm+vt+edit,
1790
1791 xterm+pc+edit|fragment for pc-style editing keypad,
1792 kend=\E[4~,
1793 khome=\E[1~,
1794
1795 xterm+vt+edit|fragment for vt220-style editing keypad,
1796 kfnd=\E[1~,
1797 kslt=\E[4~,
1798
1799 xterm+alt1049|xterm 90 feature,
1800 rmcup=\E[?1049l,
1801 smcup=\E[?1049h,
1802
1803 xterm+titlestack|xterm 251 feature,
1804 rmcup=\E[23;0;0t,
1805 smcup=\E[22;0;0t,
1806
1807 xterm+alt+title|xterm 90 and 251 features combined,
1808 rmcup=\E[?1049l\E[23;0;0t,
1809 smcup=\E[?1049h\E[22;0;0t,
1810
1811 # The xterm ctrlFKeys resource defaults to 10, so without the "pc-style"
1812 # feature, e.g., setting the modifyCursorKeys and modifyFunctionKeys resources
1813 # to -1 to disable them, one gets 42 function-keys on a 12-function-key
1814 # keyboard, e.g.,
1815 # kf1 = \E[11~
1816 # kf11 shift f1 = \E[23~
1817 # kf21 control f1 = \E[42~
1818 # kf31 shift control f1 = \E[52~
1819 xterm+nopcfkeys|fragment without PC-style fkeys,
1820 kf1=\E[11~,
1821 kf10=\E[21~,
1822 kf11=\E[23~,
1823 kf12=\E[24~,
1824 kf13=\E[25~,
1825 kf14=\E[26~,
1826 kf15=\E[28~,
1827 kf16=\E[29~,
1828 kf17=\E[31~,
1829 kf18=\E[32~,
1830 kf19=\E[33~,
1831 kf2=\E[12~,
1832 kf20=\E[34~,
1833 kf21=\E[42~,
1834 kf22=\E[43~,
1835 kf23=\E[44~,
1836 kf24=\E[45~,
1837 kf25=\E[46~,
1838 kf26=\E[47~,
1839 kf27=\E[48~,
1840 kf28=\E[49~,
1841 kf29=\E[50~,
1842 kf3=\E[13~,
1843 kf30=\E[51~,
1844 kf31=\E[52~,
1845 kf32=\E[53~,
1846 kf33=\E[54~,
1847 kf34=\E[55~,
1848 kf35=\E[56~,
1849 kf36=\E[57~,
1850 kf37=\E[58~,
1851 kf38=\E[59~,
1852 kf39=\E[60~,
1853 kf4=\E[14~,
1854 kf40=\E[61~,
1855 kf41=\E[62~,
1856 kf42=\E[63~,
1857 kf5=\E[15~,
1858 kf6=\E[17~,
1859 kf7=\E[18~,
1860 kf8=\E[19~,
1861 kf9=\E[20~,
1862
1863 # from development after ncurses 6.1:
1864 # Xterm's emulation of the VT100 numeric keypad on a PC-keyboard runs into the
1865 # problem that the keypad layout is different, and that the natural choice for
1866 # PF1 is NumLock (which happens to be reserved for other use). To work around
1867 # that, PF1-PF4 are emulated via F1-F4, which leaves the "/", "*" and "+" not
1868 # directly related to VT100.
1869 #
1870 # With the VT220 keypad block that uses the 1-9 keys as suggested in
1871 # terminfo(5), the other keys can be handled with user-defined capabilities:
1872 #
1873 # _______________________________________
1874 # | NumLock | / | * | - |
1875 # | | $Oo | $Oj | $OS |
1876 # |_________|__kpDIV__|__kpMUL__|__kpSUB__|
1877 # | 7 8 9 | + |
1878 # | $Ow | $Ox | $Oy | $Ok |
1879 # |_ka1__K1_|_________|_ka3__K3_| kpADD |
1880 # | 4 | 5 | 6 | |
1881 # | $Ot | $Ou | $Ov | |
1882 # |_________|_kb2__K2_|_________|_________|
1883 # | 1 | 2 | 3 | |
1884 # | $Oq | $Or | $Os | |
1885 # |_kc1__K4_|_________|_kc3__K5_| enter |
1886 # | 0 | . | $OM |
1887 # | $Op | $On | |
1888 # |_______kpZRO_______|__kpDOT__|_kent_@8_|
1889 #
1890 # ka2, kb1, kb3 and kc2 are extensions, as are the mixed-case names.
1891 # There are no termcap equivalents for these extensions.
1892 #
1893 # kpCMA (comma) is used here for the VT100 keypad, which xterm emulates with
1894 # shifted-keypad-plus, though normally that invokes a font-size change.
1895 #
1896 # Old versions of xterm, e.g., xterm-xfree86, documented \EOE as kb2, which
1897 # does not fit into this layout. The extension kp5 fits, but is not visible
1898 # to termcap applications. As an alternative, kbeg (which does have a termcap
1899 # equivalent) is provided.
1900
1901 xterm+keypad|xterm emulating VT100/VT220 numeric keypad,
1902 kbeg=\EOE,
1903 kp5=\EOE,
1904 kpADD=\EOk,
1905 kpCMA=\EOl,
1906 kpDIV=\EOo,
1907 kpDOT=\EOn,
1908 kpMUL=\EOj,
1909 kpSUB=\EOm,
1910 kpZRO=\EOp,
1911 use=vt220+keypad,
1912
1913 # 2026-01-31 ncurses
1914 xterm+3keys|X11 3-keys,
1915 kPause=\E[26;2~,
1916 kPrint=\E[25~,
1917 kPrint2=\E[25;2~,
1918 kPrint3=\E[25;3~,
1919 kPrint4=\E[25;4~,
1920 kPrint5=\E[25;5~,
1921 kPrint6=\E[25;6~,
1922 kPrint7=\E[25;7~,
1923 kScroll=\E[28;2~,
1924
1925 # from development after ncurses 5.2:
1926 # A better adaptation to modern keyboards such as the PC's, which have a dozen
1927 # function keys and the keypad 2,4,6,8 keys are labeled with arrows keys, is to
1928 # use the 5-key arrangement to model the arrow keys as suggested in the
1929 # terminfo guidelines:
1930 # _______________________________________
1931 # | PF1 | PF2 | PF3 | PF4 |
1932 # | $OP | $OQ | $OR | $OS |
1933 # |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
1934 # | 7 8 9 - |
1935 # | $Ow | $Ox | $Oy | $Om |
1936 # |_ka1__K1_|_________|_ka3__K3_|_________|
1937 # | 4 | 5 | 6 | , |
1938 # | $Ot | $Ou | $Ov | $Ol |
1939 # |_________|_kb2__K2_|_________|_________|
1940 # | 1 | 2 | 3 | |
1941 # | $Oq | $Or | $Os | enter |
1942 # |_kc1__K4_|_________|_kc3__K5_| $OM |
1943 # | 0 | . | |
1944 # | $Op | $On | |
1945 # |___________________|_________|_kent_@8_|
1946 vt220+keypad|dec vt220 numeric keypad,
1947 ka1=\EOw,
1948 ka3=\EOy,
1949 kb2=\EOu,
1950 kc1=\EOq,
1951 kc3=\EOs,
1952 kent=\EOM,
1953 kf1=\EOP,
1954 kf2=\EOQ,
1955 kf3=\EOR,
1956 kf4=\EOS,
1957 ka2=\EOx,
1958 kb1=\EOt,
1959 kb3=\EOv,
1960 kc2=\EOr,
1961 #
1962 # This should work for the commonly used "color xterm" variations (XFree86
1963 # xterm, color_xterm, nxterm, rxvt). Note that it does not set 'bce', so for
1964 # XFree86 and and rxvt, some applications that use colors will be less
1965 # efficient, and in a few special cases (with "smart" optimization) the wrong
1966 # color will be painted in spots.
1967 xterm-color|generic "ANSI" color xterm (X Window System),
1968 colors#8,
1969 ncv@,
1970 pairs#64,
1971 op=\E[m,
1972 setab=\E[4%p1%dm,
1973 setaf=\E[3%p1%dm,
1974 use=xterm-r6,
1975 #
1976 # vi may work better with this entry, because vi
1977 # doesn't use insert mode much
1978 xterm-ic|xterm-vi|xterm with insert character instead of insert mode,
1979 mir@,
1980 ich=\E[%p1%d@,
1981 ich1=\E[@,
1982 rmir@,
1983 smir@,
1984 use=xterm,
1985 #
1986 # This is used only for testing (it's not relevant to DEC VTxxx terminals, but
1987 # to ncurses).
1988 xterm-xmc|xterm with magic-cookie glitch,
1989 xmc#1,
1990 use=xterm-new,
1991 #
1992 # This one was originally for testing ncurses. While the ISO 6429 defines the
1993 # REP control, none of the DEC VTxxx terminals (VT52 through VT525) support it.
1994 #
1995 # The feature's inclusion in xterm was prompted by changes in ncurses to
1996 # support testing repeat_char by Alexander Lukyanov, since no readily-available
1997 # terminal supported this:
1998 #
1999 # + Alexander's patch was integrated in ncurses 1996/09/28
2000 # + xterm patch #32 1996/11/21 was released in XFree86 3.2A 1997/01/26
2001 #
2002 # In July 2017, the feature was added to xterm-new in ncurses, making this
2003 # entry obsolete (but it is kept for reference).
2004 xterm-rep|xterm with repeat-character control,
2005 rep=%p1%c\E[%p2%{1}%-%db,
2006 use=xterm-new,
2007 #
2008 # This is mainly for testing xterm; the real VT220 will not let you switch
2009 # character sets without first altering the keyboard language in the setup
2010 # screen. Some emulators allow this anyway. (Note that these strings are
2011 # normally used only for printers). The parameter to csnm and scs is the same
2012 # in both cases: the keyboard language parameter returned by CSI ? 2 6 n.
2013 xterm-nrc|xterm with VT220 national replacement character sets,
2014 csnm=
2015 %?
2016 %p1%{1}%=
2017 %tNorth\sAmerican
2018 %e
2019 %p1%{2}%=
2020 %tBritish
2021 %e
2022 %p1%{3}%=
2023 %tFlemish
2024 %e
2025 %p1%{4}%=
2026 %tFrench\sCanadian
2027 %e
2028 %p1%{5}%=
2029 %tDanish
2030 %e
2031 %p1%{6}%=
2032 %tFinnish
2033 %e
2034 %p1%{7}%=
2035 %tGerman
2036 %e
2037 %p1%{8}%=
2038 %tDutch
2039 %e
2040 %p1%{9}%=
2041 %tItalian
2042 %e
2043 %p1%{10}%=
2044 %tSwiss\s(French)
2045 %e
2046 %p1%{11}%=
2047 %tSwiss\s(German)
2048 %e
2049 %p1%{12}%=
2050 %tSwedish
2051 %e
2052 %p1%{13}%=
2053 %tNorwegian
2054 %e
2055 %p1%{14}%=
2056 %tFrench/Belgian
2057 %e
2058 %p1%{15}%=
2059 %tSpanish
2060 %;,
2061 scs=
2062 %?
2063 %p1%{1}%=
2064 %t\E(B
2065 %e
2066 %p1%{2}%=
2067 %t\E(A
2068 %e
2069 %p1%{3}%=
2070 %t\E(R
2071 %e
2072 %p1%{4}%=
2073 %t\E(9
2074 %e
2075 %p1%{5}%=
2076 %t\E(E
2077 %e
2078 %p1%{6}%=
2079 %t\E(5
2080 %e
2081 %p1%{7}%=
2082 %t\E(K
2083 %e
2084 %p1%{8}%=
2085 %t\E(4
2086 %e
2087 %p1%{9}%=
2088 %t\E(Y
2089 %e
2090 %p1%{10}%=
2091 %t\E(=
2092 %e
2093 %p1%{11}%=
2094 %t\E(=
2095 %e
2096 %p1%{12}%=
2097 %t\E(7
2098 %e
2099 %p1%{13}%=
2100 %t\E(E
2101 %e
2102 %p1%{14}%=
2103 %t\E(R
2104 %e
2105 %p1%{15}%=
2106 %t\E(Z
2107 %;,
2108 use=xterm-new,
2109 #
2110 # Foreground 0-15 maps (with toggles) into 30-37 & 90-97
2111 # Background 0-15 maps (with toggles) into 40-47 & 100-107
2112 #
2113 # Originally I suppressed setaf/setab, since ANSI specifies only 8 colors, but
2114 # Stephen Marley persuaded me to allow the "ANSI" color controls to extend to
2115 # 16 colors. (Note that ncurses 4.2 uses setf/setb from this description;
2116 # however 5.0 selects either according to their availability). - T.Dickey
2117 #
2118 # SVr4 curses does not use more than 8 colors anyway, so using 16 colors is
2119 # either for terminfo-level applications or via ncurses.
2120 xterm-16color|xterm with 16 colors,
2121 colors#16,
2122 pairs#0x100,
2123 setab=\E[
2124 %?
2125 %p1%{8}%<
2126 %t
2127 %p1%{40}%+
2128 %e
2129 %p1%{92}%+
2130 %;
2131 %dm,
2132 setaf=\E[
2133 %?
2134 %p1%{8}%<
2135 %t
2136 %p1%{30}%+
2137 %e
2138 %p1%{82}%+
2139 %;
2140 %dm,
2141 setb=
2142 %p1%{8}%/%{6}%*%{4}%+\E[%d
2143 %p1%{8}%m%Pa
2144 %?%ga%{1}%=
2145 %t4
2146 %e%ga%{3}%=
2147 %t6
2148 %e%ga%{4}%=
2149 %t1
2150 %e%ga%{6}%=
2151 %t3
2152 %e%ga%d
2153 %;
2154 m,
2155 setf=
2156 %p1%{8}%/%{6}%*%{3}%+\E[%d
2157 %p1%{8}%m%Pa
2158 %?%ga%{1}%=
2159 %t4
2160 %e%ga%{3}%=
2161 %t6
2162 %e%ga%{4}%=
2163 %t1
2164 %e%ga%{6}%=
2165 %t3
2166 %e%ga%d
2167 %;
2168 m,
2169 use=xterm+256color2,
2170 use=xterm+osc104,
2171 use=xterm-new,
2172
2173 # xterm OSC 104 resets the color palette. Using it as part of xterm+256color
2174 # has the drawback that some of the xterm-alikes which use that building block
2175 # require a different approach to rs1 -TD
2176 xterm+osc104|reset color palette,
2177 oc=\E]104\E\\,
2178 rs1=\Ec\E]104\E\\,
2179
2180 # "indexed color" is mentioned without definition in ISO 8613-6 (ITU T.416).
2181 #
2182 # This implementation uses a 256-element color map where the first 16 entries
2183 # are shared with the aixterm-compatible colors (and in turn the first 8 are
2184 # shared with the ANSI colors). The three levels (256, 16, 8) account for the
2185 # use of a conditional expression in setaf/setab which reduces the number of
2186 # characters sent to the screen for typical applications.
2187 #
2188 # 256 colors should give 65536 pairs, but SVr4 (legacy) terminfo stores numbers
2189 # in a signed short. Most people will not notice problems with only 32767
2190 # pairs. With ncurses 6.1, numbers are stored in a signed integer (at least
2191 # 32-bits), and the inconsistency regarding pairs is eliminated.
2192 xterm+256color|original xterm 256-color feature,
2193 ccc,
2194 colors#0x100,
2195 pairs#0x10000,
2196 initc=\E]4;
2197 %p1%d;rgb:
2198 %p2%{255}%*%{1000}%/%2.2X/
2199 %p3%{255}%*%{1000}%/%2.2X/
2200 %p4%{255}%*%{1000}%/%2.2X\E\\,
2201 oc=\E]104\E\\,
2202 setab=\E[
2203 %?
2204 %p1%{8}%<
2205 %t4
2206 %p1%d
2207 %e
2208 %p1%{16}%<
2209 %t10
2210 %p1%{8}%-%d
2211 %e48;5;
2212 %p1%d
2213 %;
2214 m,
2215 setaf=\E[
2216 %?
2217 %p1%{8}%<
2218 %t3
2219 %p1%d
2220 %e
2221 %p1%{16}%<
2222 %t9
2223 %p1%{8}%-%d
2224 %e38;5;
2225 %p1%d
2226 %;
2227 m,
2228 setb@,
2229 setf@,
2230 xterm+256color2|xterm 256-color feature,
2231 setab=\E[
2232 %?
2233 %p1%{8}%<
2234 %t4
2235 %p1%d
2236 %e
2237 %p1%{16}%<
2238 %t10
2239 %p1%{8}%-%d
2240 %e48:5:
2241 %p1%d
2242 %;
2243 m,
2244 setaf=\E[
2245 %?
2246 %p1%{8}%<
2247 %t3
2248 %p1%d
2249 %e
2250 %p1%{16}%<
2251 %t9
2252 %p1%{8}%-%d
2253 %e38:5:
2254 %p1%d
2255 %;
2256 m,
2257 use=xterm+256color,
2258 xterm-256color|xterm with 256 colors,
2259 use=xterm+256color,
2260 use=xterm+osc104,
2261 use=xterm-new,
2262 xterm-88color|xterm with 88 colors,
2263 colors#88,
2264 pairs#7744,
2265 use=xterm-256color,
2266
2267 # "direct color" is mentioned without definition in ISO 8613-6 (ITU T.416).
2268 #
2269 # This is a particular implementation which assume 8-bit values for red, green,
2270 # and blue. Other encodings are possible; none are addressed by that standard.
2271 #
2272 # The "RGB" flag is an ncurses 6.1 extension which tells the library how to
2273 # quickly compute the color-content for a given color value.
2274 #
2275 # Like xterm+256color, this uses a conditional expression. But it does that
2276 # for a different reason: to make it readily usable for applications which
2277 # print text but also use RGB colors, it uses a color map for the usual ANSI
2278 # colors (0-7) and RGB colors for the remaining range of the color value.
2279 xterm+direct|xterm fragment with direct-color indexing,
2280 RGB,
2281 colors#0x1000000,
2282 pairs#0x10000,
2283 CO#8,
2284 initc@,
2285 op=\E[39;49m,
2286 setab=\E[
2287 %?
2288 %p1%{8}%<
2289 %t4
2290 %p1%d
2291 %e48:2::
2292 %p1%{65536}%/%d:
2293 %p1%{256}%/%{255}%&%d:
2294 %p1%{255}%&%d
2295 %;
2296 m,
2297 setaf=\E[
2298 %?
2299 %p1%{8}%<
2300 %t3
2301 %p1%d
2302 %e38:2::
2303 %p1%{65536}%/%d:
2304 %p1%{256}%/%{255}%&%d:
2305 %p1%{255}%&%d
2306 %;
2307 m,
2308 setb@,
2309 setf@,
2310 xterm-direct|xterm with direct-color indexing,
2311 use=xterm+direct,
2312 use=xterm,
2313 #
2314 # This is an 8-bit version of xterm, which emulates DEC vt220 with ANSI color.
2315 # To use it, your decTerminalID resource must be set to 200 or above, and the
2316 # sunKeyboard resource set to true.
2317 #
2318 # HTS \E H \210
2319 # RI \E M \215
2320 # SS3 \E O \217
2321 # CSI \E [ \233
2322 #
2323 xterm-8bit|xterm terminal emulator with 8-bit controls (X Window System),
2324 OTbs,
2325 am,
2326 bce,
2327 km,
2328 mc5i,
2329 mir,
2330 msgr,
2331 npc,
2332 xenl,
2333 AX,
2334 colors#8,
2335 cols#80,
2336 it#8,
2337 lines#24,
2338 pairs#64,
2339 bel=^G,
2340 blink=\2335m,
2341 bold=\2331m,
2342 cbt=\233Z,
2343 civis=\233?25l,
2344 clear=\233H\2332J,
2345 cnorm=\233?25l\233?25h,
2346 cr=\r,
2347 csr=\233%i%p1%d;%p2%dr,
2348 cub=\233%p1%dD,
2349 cub1=^H,
2350 cud=\233%p1%dB,
2351 cud1=\n,
2352 cuf=\233%p1%dC,
2353 cuf1=\233C,
2354 cup=\233%i%p1%d;%p2%dH,
2355 cuu=\233%p1%dA,
2356 cuu1=\233A,
2357 cvvis=\233?12;25h,
2358 dch=\233%p1%dP,
2359 dch1=\233P,
2360 dl=\233%p1%dM,
2361 dl1=\233M,
2362 ech=\233%p1%dX,
2363 ed=\233J,
2364 el=\233K,
2365 el1=\2331K,
2366 flash=\233?5h$<100/>\233?5l,
2367 home=\233H,
2368 hpa=\233%i%p1%dG,
2369 ht=^I,
2370 hts=\210,
2371 ich=\233%p1%d@,
2372 il=\233%p1%dL,
2373 il1=\233L,
2374 ind=\n,
2375 invis=\2338m,
2376 is2=\E[62"p\E\sG\233m\233?7h\E>
2377 \E7\233?1;3;4;6l\2334l\233r
2378 \E8,
2379 ka1=\217w,
2380 ka3=\217u,
2381 kb2=\217y,
2382 kbeg=\217E,
2383 kc1=\217q,
2384 kc3=\217s,
2385 kcbt=\233Z,
2386 kcub1=\217D,
2387 kcud1=\217B,
2388 kcuf1=\217C,
2389 kcuu1=\217A,
2390 kdch1=\2333~,
2391 kend=\2334~,
2392 kent=\217M,
2393 kf1=\23311~,
2394 kf10=\23321~,
2395 kf11=\23323~,
2396 kf12=\23324~,
2397 kf13=\23325~,
2398 kf14=\23326~,
2399 kf15=\23328~,
2400 kf16=\23329~,
2401 kf17=\23331~,
2402 kf18=\23332~,
2403 kf19=\23333~,
2404 kf2=\23312~,
2405 kf20=\23334~,
2406 kf3=\23313~,
2407 kf4=\23314~,
2408 kf5=\23315~,
2409 kf6=\23317~,
2410 kf7=\23318~,
2411 kf8=\23319~,
2412 kf9=\23320~,
2413 khome=\2331~,
2414 kich1=\2332~,
2415 kmous=\233M,
2416 knp=\2336~,
2417 kpp=\2335~,
2418 mc0=\233i,
2419 mc4=\2334i,
2420 mc5=\2335i,
2421 meml=\El,
2422 memu=\Em,
2423 op=\23339;49m,
2424 rc=\E8,
2425 rev=\2337m,
2426 ri=\215,
2427 rmam=\233?7l,
2428 rmcup=\233?1049l,
2429 rmir=\2334l,
2430 rmkx=\233?1l\E>,
2431 rmso=\23327m,
2432 rmul=\23324m,
2433 rs1=\Ec,
2434 rs2=\E[62"p\E\sG\233m\233?7h\E>
2435 \E7\233?1;3;4;6l\2334l\233r
2436 \E8,
2437 sc=\E7,
2438 setab=\2334%p1%dm,
2439 setaf=\2333%p1%dm,
2440 setb=\2334
2441 %?
2442 %p1%{1}%=
2443 %t4
2444 %e
2445 %p1%{3}%=
2446 %t6
2447 %e
2448 %p1%{4}%=
2449 %t1
2450 %e
2451 %p1%{6}%=
2452 %t3
2453 %e
2454 %p1%d
2455 %;
2456 m,
2457 setf=\2333
2458 %?
2459 %p1%{1}%=
2460 %t4
2461 %e
2462 %p1%{3}%=
2463 %t6
2464 %e
2465 %p1%{4}%=
2466 %t1
2467 %e
2468 %p1%{6}%=
2469 %t3
2470 %e
2471 %p1%d
2472 %;
2473 m,
2474 sgr=\2330
2475 %?
2476 %p6
2477 %t;1
2478 %;
2479 %?
2480 %p2
2481 %t;4
2482 %;
2483 %?
2484 %p1
2485 %p3%|
2486 %t;7
2487 %;
2488 %?
2489 %p4
2490 %t;5
2491 %;
2492 %?
2493 %p7
2494 %t;8
2495 %;
2496 m
2497 %?
2498 %p9
2499 %t\E(0
2500 %e
2501 \E(B
2502 %;,
2503 sgr0=\2330m\E(B,
2504 smam=\233?7h,
2505 smcup=\233?1049h,
2506 smir=\2334h,
2507 smkx=\233?1h\E=,
2508 smso=\2337m,
2509 smul=\2334m,
2510 tbc=\2333g,
2511 u6=\233[%i%d;%dR,
2512 u7=\E[6n,
2513 u8=\233[?%[;0123456789]c,
2514 u9=\E[c,
2515 vpa=\233%i%p1%dd,
2516 use=xterm+acs,
2517 use=xterm+kbs,
2518 #
2519 xterm-xf86-v44|xterm terminal emulator (XFree86 4.4 Window System),
2520 OTbs,
2521 am,
2522 bce,
2523 km,
2524 mir,
2525 msgr,
2526 npc,
2527 xenl,
2528 AX,
2529 XT,
2530 colors#8,
2531 cols#80,
2532 lines#24,
2533 pairs#64,
2534 acsc=``aaffggiijjkkllmmnnooppqqr
2535 rssttuuvvwwxxyyzz{{||}}~~,
2536 bel=^G,
2537 civis=\E[?25l,
2538 clear=\E[H\E[2J,
2539 cnorm=\E[?12l\E[?25h,
2540 cr=\r,
2541 cub1=^H,
2542 cud1=\n,
2543 cvvis=\E[?12;25h,
2544 dch=\E[%p1%dP,
2545 dch1=\E[P,
2546 ech=\E[%p1%dX,
2547 ed=\E[J,
2548 el=\E[K,
2549 el1=\E[1K,
2550 enacs=\E(B\E)0,
2551 flash=\E[?5h$<100/>\E[?5l,
2552 hpa=\E[%i%p1%dG,
2553 ich=\E[%p1%d@,
2554 ind=\n,
2555 indn=\E[%p1%dS,
2556 is2=\E[!p\E[?3;4l\E[4l\E>,
2557 kDC=\E[3;2~,
2558 kEND=\E[1;2F,
2559 kHOM=\E[1;2H,
2560 kIC=\E[2;2~,
2561 kLFT=\E[1;2D,
2562 kNXT=\E[6;2~,
2563 kPRV=\E[5;2~,
2564 kRIT=\E[1;2C,
2565 kb2=\EOE,
2566 kcbt=\E[Z,
2567 kdch1=\E[3~,
2568 kend=\EOF,
2569 kent=\EOM,
2570 kf1=\EOP,
2571 kf10=\E[21~,
2572 kf11=\E[23~,
2573 kf12=\E[24~,
2574 kf13=\EO2P,
2575 kf14=\EO2Q,
2576 kf15=\EO2R,
2577 kf16=\EO2S,
2578 kf17=\E[15;2~,
2579 kf18=\E[17;2~,
2580 kf19=\E[18;2~,
2581 kf2=\EOQ,
2582 kf20=\E[19;2~,
2583 kf21=\E[20;2~,
2584 kf22=\E[21;2~,
2585 kf23=\E[23;2~,
2586 kf24=\E[24;2~,
2587 kf25=\EO5P,
2588 kf26=\EO5Q,
2589 kf27=\EO5R,
2590 kf28=\EO5S,
2591 kf29=\E[15;5~,
2592 kf3=\EOR,
2593 kf30=\E[17;5~,
2594 kf31=\E[18;5~,
2595 kf32=\E[19;5~,
2596 kf33=\E[20;5~,
2597 kf34=\E[21;5~,
2598 kf35=\E[23;5~,
2599 kf36=\E[24;5~,
2600 kf37=\EO6P,
2601 kf38=\EO6Q,
2602 kf39=\EO6R,
2603 kf4=\EOS,
2604 kf40=\EO6S,
2605 kf41=\E[15;6~,
2606 kf42=\E[17;6~,
2607 kf43=\E[18;6~,
2608 kf44=\E[19;6~,
2609 kf45=\E[20;6~,
2610 kf46=\E[21;6~,
2611 kf47=\E[23;6~,
2612 kf48=\E[24;6~,
2613 kf5=\E[15~,
2614 kf6=\E[17~,
2615 kf7=\E[18~,
2616 kf8=\E[19~,
2617 kf9=\E[20~,
2618 kich1=\E[2~,
2619 kmous=\E[M,
2620 knp=\E[6~,
2621 kpp=\E[5~,
2622 meml=\El,
2623 memu=\Em,
2624 op=\E[39;49m,
2625 ri=\EM,
2626 rin=\E[%p1%dT,
2627 rmacs=^O,
2628 rmam=\E[?7l,
2629 rmir=\E[4l,
2630 rmkx=\E[?1l\E>,
2631 rmso=\E[27m,
2632 rmul=\E[24m,
2633 rs1=\Ec,
2634 rs2=\E[!p\E[?3;4l\E[4l\E>,
2635 setab=\E[4%p1%dm,
2636 setaf=\E[3%p1%dm,
2637 setb=\E[4
2638 %?
2639 %p1%{1}%=
2640 %t4
2641 %e
2642 %p1%{3}%=
2643 %t6
2644 %e
2645 %p1%{4}%=
2646 %t1
2647 %e
2648 %p1%{6}%=
2649 %t3
2650 %e
2651 %p1%d
2652 %;
2653 m,
2654 setf=\E[3
2655 %?
2656 %p1%{1}%=
2657 %t4
2658 %e
2659 %p1%{3}%=
2660 %t6
2661 %e
2662 %p1%{4}%=
2663 %t1
2664 %e
2665 %p1%{6}%=
2666 %t3
2667 %e
2668 %p1%d
2669 %;
2670 m,
2671 sgr=\E[0
2672 %?
2673 %p6
2674 %t;1
2675 %;
2676 %?
2677 %p2
2678 %t;4
2679 %;
2680 %?
2681 %p1
2682 %p3%|
2683 %t;7
2684 %;
2685 %?
2686 %p4
2687 %t;5
2688 %;
2689 %?
2690 %p7
2691 %t;8
2692 %;
2693 m
2694 %?
2695 %p9
2696 %t\016
2697 %e
2698 \017
2699 %;,
2700 sgr0=\E[m\017,
2701 smacs=^N,
2702 smam=\E[?7h,
2703 smir=\E[4h,
2704 smkx=\E[?1h\E=,
2705 u8=\E[?1;2c,
2706 vpa=\E[%i%p1%dd,
2707 ka2=\EOx,
2708 kb1=\EOt,
2709 kb3=\EOv,
2710 kc2=\EOr,
2711 use=xterm+kbs,
2712 use=ansi+apparrows,
2713 use=ansi+csr,
2714 use=ansi+cup,
2715 use=ansi+enq,
2716 use=ansi+idl,
2717 use=ansi+inittabs,
2718 use=ansi+local,
2719 use=ansi+pp,
2720 use=ansi+sgrbold,
2721 use=xterm+alt1049,
2722
2723 xterm-xfree86|xterm terminal emulator (XFree86),
2724 use=xterm-xf86-v44,
2725 #
2726 # Compatible with the R6 xterm, with the following changes:
2727 # + added acsc (perhaps some versions of tic assume the standard vt100
2728 # alternate character set)
2729 # + added u6, u7, u8, u9 strings for Daniel Weaver's tack program.
2730 # + added kmous string for ncurses.
2731 # + added khome/kend strings (which conflict with kfnd/kslt, see note).
2732 xterm-r6|xterm X11R6 version,
2733 OTbs,
2734 am,
2735 km,
2736 mir,
2737 msgr,
2738 xenl,
2739 cols#80,
2740 it#8,
2741 lines#24,
2742 acsc=``aaffggiijjkkllmmnnooppqqr
2743 rssttuuvvwwxxyyzz{{||}}~~,
2744 bel=^G,
2745 bold=\E[1m,
2746 clear=\E[H\E[2J,
2747 cr=\r,
2748 cub=\E[%p1%dD,
2749 cub1=^H,
2750 cud=\E[%p1%dB,
2751 cud1=\n,
2752 cuf=\E[%p1%dC,
2753 cuf1=\E[C,
2754 cuu=\E[%p1%dA,
2755 cuu1=\E[A,
2756 dch=\E[%p1%dP,
2757 dch1=\E[P,
2758 dl=\E[%p1%dM,
2759 dl1=\E[M,
2760 enacs=\E)0,
2761 ht=^I,
2762 hts=\EH,
2763 il=\E[%p1%dL,
2764 il1=\E[L,
2765 ind=\n,
2766 is2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[
2767 ?1;3;4;6l\E8,
2768 kcub1=\EOD,
2769 kcud1=\EOB,
2770 kcuf1=\EOC,
2771 kcuu1=\EOA,
2772 kf1=\E[11~,
2773 kf10=\E[21~,
2774 kf11=\E[23~,
2775 kf12=\E[24~,
2776 kf13=\E[25~,
2777 kf14=\E[26~,
2778 kf15=\E[28~,
2779 kf16=\E[29~,
2780 kf17=\E[31~,
2781 kf18=\E[32~,
2782 kf19=\E[33~,
2783 kf2=\E[12~,
2784 kf20=\E[34~,
2785 kf3=\E[13~,
2786 kf4=\E[14~,
2787 kf5=\E[15~,
2788 kf6=\E[17~,
2789 kf7=\E[18~,
2790 kf8=\E[19~,
2791 kf9=\E[20~,
2792 kmous=\E[M,
2793 meml=\El,
2794 memu=\Em,
2795 rev=\E[7m,
2796 ri=\EM,
2797 rmacs=^O,
2798 rmcup=\E[2J\E[?47l\E8,
2799 rmir=\E[4l,
2800 rmkx=\E[?1l\E>,
2801 rmso=\E[m,
2802 rmul=\E[m,
2803 rs2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[
2804 ?1;3;4;6l\E8,
2805 sgr0=\E[m,
2806 smacs=^N,
2807 smcup=\E7\E[?47h,
2808 smir=\E[4h,
2809 smkx=\E[?1h\E=,
2810 smso=\E[7m,
2811 smul=\E[4m,
2812 tbc=\E[3g,
2813 u8=\E[?1;2c,
2814 u9=\E[c,
2815 use=ansi+cpr,
2816 use=ansi+csr,
2817 use=ansi+cup,
2818 use=ansi+erase,
2819 use=xterm+kbs,
2820 use=xterm+decedit,
2821 xterm-old|antique xterm version,
2822 use=xterm-r6,
2823 #
2824 # Compatible with the R5 xterm, with the following changes:
2825 # + changed 'blink=@', to 'blink@' (the former meant that "@" would start
2826 # a blink, the latter that it is not supported).
2827 # + changed kf1 through kf4 to correspond with actual usage. Though X
2828 # supports keypad symbols for PF1 to PF4, and xterm interprets these
2829 # correctly, the F1 to F4 codes are commonly (but incorrectly) used.
2830 # + moved reset string from rs1 to rs2, to correlate better with termcap.
2831 # + make khome consistent with other entries.
2832 # + use rmul/smul, rmir/smir from termcap, but not rmcup/smcup because
2833 # not everyone wants the alternate screen.
2834 # + added u6, u7, u8, u9 strings for Daniel Weaver's tack program.
2835 # + added kmous string for ncurses.
2836 xterm-r5|xterm R5 version,
2837 OTbs,
2838 am,
2839 km,
2840 msgr,
2841 xenl,
2842 cols#80,
2843 it#8,
2844 lines#24,
2845 bel=^G,
2846 bold=\E[1m,
2847 clear=\E[H\E[2J,
2848 cr=\r,
2849 cub1=^H,
2850 cud1=\n,
2851 cup=\E[%i%p1%d;%p2%dH,
2852 ed=\E[J,
2853 el=\E[K,
2854 home=\E[H,
2855 ht=^I,
2856 hts=\EH,
2857 ind=\n,
2858 kdch1=\E[3~,
2859 kdl1=\E[31~,
2860 kel=\E[8~,
2861 kend=\E[4~,
2862 kf0=\EOq,
2863 kf1=\E[11~,
2864 kf10=\E[21~,
2865 kf11=\E[23~,
2866 kf12=\E[24~,
2867 kf2=\E[12~,
2868 kf3=\E[13~,
2869 kf4=\E[14~,
2870 kf5=\E[15~,
2871 kf6=\E[17~,
2872 kf7=\E[18~,
2873 kf8=\E[19~,
2874 kf9=\E[20~,
2875 khome=\E[1~,
2876 kich1=\E[2~,
2877 kil1=\E[30~,
2878 kmous=\E[M,
2879 knp=\E[6~,
2880 kpp=\E[5~,
2881 rev=\E[7m,
2882 ri=\EM,
2883 rmkx=\E[?1l\E>,
2884 rmul=\E[m,
2885 rs2=\E>\E[?1;3;4;5;6l\E[4l\E[?7h
2886 \E[m\E[r\E[2J\E[H,
2887 sgr=\E[
2888 %?
2889 %p1
2890 %t;7
2891 %;
2892 %?
2893 %p2
2894 %t;4
2895 %;
2896 %?
2897 %p3
2898 %t;7
2899 %;
2900 %?
2901 %p4
2902 %t;5
2903 %;
2904 %?
2905 %p6
2906 %t;1
2907 %;
2908 m,
2909 sgr0=\E[m,
2910 smkx=\E[?1h\E=,
2911 smul=\E[4m,
2912 tbc=\E[3g,
2913 u8=\E[?1;2c,
2914 use=xterm+kbs,
2915 use=ansi+apparrows,
2916 use=ansi+csr,
2917 use=ansi+enq,
2918 use=ansi+idc,
2919 use=ansi+idl,
2920 use=ansi+local,
2921 use=ansi+sgrso,
2922
2923 # DEC status-line is an extension for VT220, and standard with VT320 and up.
2924 dec+sl|DEC VTxx status line,
2925 eslok,
2926 hs,
2927 dsl=\E[0$~,
2928 fsl=\E[0$},
2929 tsl=\E[2$~\E[1$}\E[%i%p1%d`,
2930 #
2931 #
2932 # Customization begins here.
2933 #
2934 # This is the only entry which you should have to customize, since "xterm"
2935 # is widely used for a variety of incompatible terminal emulations including
2936 # color_xterm and rxvt.
2937 xterm|X11 terminal emulator,
2938 use=xterm-new,
2939 # use=xterm-r6,
2940
2941 # This fragment is for people who cannot agree on what the backspace key
2942 # should send.
2943 xterm+kbs|fragment for backspace key,
2944 kbs=^H,
2945 # kbs=^?,