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