Git init
[external/ncurses.git] / debian / xterm.ti
1 # $XTermId: terminfo,v 1.155 2007/11/11 23:26:52 tom Exp $
2 #
3 # $XFree86: xc/programs/xterm/terminfo,v 3.59 2006/02/13 01:14:59 dickey Exp $
4 #
5 # Updates/notes/new entries (e.g., xterm-8bit, xterm-16color, xterm-256color)
6 # - Thomas E. Dickey
7 #
8 #------------------------------------------------------------------------------
9 # Copyright 1996-2006,2007 by Thomas E. Dickey
10 #
11 #                         All Rights Reserved
12 #
13 # Permission is hereby granted, free of charge, to any person obtaining a
14 # copy of this software and associated documentation files (the
15 # "Software"), to deal in the Software without restriction, including
16 # without limitation the rights to use, copy, modify, merge, publish,
17 # distribute, sublicense, and/or sell copies of the Software, and to
18 # permit persons to whom the Software is furnished to do so, subject to
19 # the following conditions:
20 #
21 # The above copyright notice and this permission notice shall be included
22 # in all copies or substantial portions of the Software.
23 #
24 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
25 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27 # IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
28 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 #
32 # Except as contained in this notice, the name(s) of the above copyright
33 # holders shall not be used in advertising or otherwise to promote the
34 # sale, use or other dealings in this Software without prior written
35 # authorization.
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         kb2=\EOE,
136         kcbt=\E[Z,
137         kent=\EOM,
138         rin=\E[%p1%dT,
139         use=xterm+pcfkeys,
140         use=xterm-basic,
141 #
142 # Encode modifiers using parameters (see "Xterm Control Sequences" ctlseqs.ms).
143 # Note that this is unrelated to PCTERM.
144 #
145 # Some names are extensions allowed by ncurses, e.g.,
146 #       kDN, kDN5, kDN6, kLFT5, kLFT6, kRIT5, kRIT6, kUP, kUP5, kUP6
147 #
148 # The uppercase names are made up, since there are no standards that apply.
149 # If they were limited to two characters, they could in principle be translated
150 # to termcap.  However, termcap sizes are limited to 1023 bytes, so there is
151 # little point in ensuring that extended key names can be translated to
152 # termcap.  A terminfo file can be up to 4096 bytes; using all extended keys
153 # that xterm can generate would in fact exceed that limit.
154 #
155 # The numbers correspond to the modifier parameters documented in Xterm
156 # Control Sequences:
157 #
158 #       2       Shift
159 #       3       Alt
160 #       4       Shift + Alt
161 #       5       Control
162 #       6       Shift + Control
163 #       7       Alt + Control
164 #       8       Shift + Alt + Control
165 #
166 # X/Open Curses defines some shift combinations, which are also used here
167 # where applicable.  Since it does define some shift combinations, no number
168 # (2) is used for suffixing the made-up names.  Some combinations are not
169 # useful, e.g., they may reboot your computer, or they may require too many
170 # fingers.  I stopped at modifier 7, just to keep things simple -TD
171 #
172 # XTerm resources:
173 # ---------------
174 # The xterm+pcfn, xterm+pcf0, xterm+pcf1, xterm+pcf2 and xterm+pcf3 fragments
175 # correspond to default resource settings for xterm on a 104-key PC keyboard
176 # with 12 function-keys:
177 #
178 #       *sunKeyboard:false
179 #       *oldXtermFKeys:false
180 #       *modifyCursorKeys:2
181 #       *modifyFunctionKeys:2
182 #       *ctrlFKeys:10
183 #
184 # The key numbers are computed based on the modifiers:
185 #
186 #       kf1-kf12 are F1-F12
187 #       kf13-kf24 are shift F1-F12
188 #       kf25-kf36 are control F1-F12
189 #       kf37-kf48 are control+shift F1-F12
190 #       kf49-kf60 are alt F1-F12
191 #       kf61-kf63 are shift-alt F1-F3
192 #
193 # Note that ncurses would allow definition of kf64 and beyond, if there were
194 # an application that required it.
195 #
196 xterm+pcfkeys|fragment for PC-style keys,
197         use=xterm+app,
198         use=xterm+pcf2,
199         use=xterm+pce2,
200         use=xterm+pcc2,
201 #
202 # The ctrlFKeys resource is only relevant to the xterm+pcfn and xterm+pcfN
203 # entries, since the modifyFunctionKeys resource overrides ctrlFKeys when it is
204 # positive.  A different choice of ctrlFKeys would give a different set of
205 # function-key strings.
206 xterm+pcfn|fragment with modifyFunctionKeys:-1 and ctrlFKeys:10,
207         kf1=\EOP,
208         kf10=\E[21~,
209         kf11=\E[23~,
210         kf12=\E[24~,
211         kf13=\E[25~,
212         kf14=\E[26~,
213         kf15=\E[28~,
214         kf16=\E[29~,
215         kf17=\E[31~,
216         kf18=\E[32~,
217         kf19=\E[33~,
218         kf2=\EOQ,
219         kf20=\E[34~,
220         kf21=\E[42~,
221         kf22=\E[43~,
222         kf23=\E[44~,
223         kf24=\E[45~,
224         kf25=\E[46~,
225         kf26=\E[47~,
226         kf27=\E[48~,
227         kf28=\E[49~,
228         kf29=\E[50~,
229         kf3=\EOR,
230         kf30=\E[51~,
231         kf31=\E[52~,
232         kf32=\E[53~,
233         kf33=\E[54~,
234         kf34=\E[55~,
235         kf35=\E[56~,
236         kf36=\E[57~,
237         kf37=\E[58~,
238         kf38=\E[59~,
239         kf39=\E[60~,
240         kf4=\EOS,
241         kf40=\E[61~,
242         kf41=\E[62~,
243         kf42=\E[63~,
244         kf43=\E[64~,
245         kf44=\E[65~,
246         kf45=\E[66~,
247         kf46=\E[67~,
248         kf47=\E[68~,
249         kf48=\E[69~,
250         kf5=\E[15~,
251         kf6=\E[17~,
252         kf7=\E[18~,
253         kf8=\E[19~,
254         kf9=\E[20~,
255
256 # Changing ctrlFKeys to 12 would let us number the keys using just shift- and
257 # control- modifiers:
258 #       kf1-kf12 are F1-F12
259 #       kf13-kf24 are shift F1-F12
260 #       kf25-kf36 are control F1-F12
261 #       kf37-kf48 are control+shift F1-F12
262 xterm+pcfN|fragment with modifyFunctionKeys:-1 and ctrlFKeys:12,
263         kf1=\EOP,
264         kf10=\E[21~,
265         kf11=\E[23~,
266         kf12=\E[24~,
267         kf13=\E[25~,
268         kf14=\E[26~,
269         kf15=\E[28~,
270         kf16=\E[29~,
271         kf17=\E[31~,
272         kf18=\E[32~,
273         kf19=\E[33~,
274         kf2=\EOQ,
275         kf20=\E[34~,
276         kf21=\E[42~,
277         kf22=\E[43~,
278         kf23=\E[44~,
279         kf24=\E[45~,
280         kf25=\E[46~,
281         kf26=\E[47~,
282         kf27=\E[48~,
283         kf28=\E[49~,
284         kf29=\E[50~,
285         kf3=\EOR,
286         kf30=\E[51~,
287         kf31=\E[52~,
288         kf32=\E[53~,
289         kf33=\E[54~,
290         kf34=\E[55~,
291         kf35=\E[56~,
292         kf36=\E[57~,
293         kf37=\E[58~,
294         kf38=\E[59~,
295         kf39=\E[60~,
296         kf4=\EOS,
297         kf40=\E[61~,
298         kf41=\E[62~,
299         kf42=\E[63~,
300         kf43=\E[64~,
301         kf44=\E[65~,
302         kf45=\E[66~,
303         kf46=\E[67~,
304         kf47=\E[68~,
305         kf48=\E[69~,
306         kf5=\E[15~,
307         kf6=\E[17~,
308         kf7=\E[18~,
309         kf8=\E[19~,
310         kf9=\E[20~,
311
312 xterm+pcf0|fragment with modifyFunctionKeys:0,
313         kf1=\EOP,
314         kf10=\E[21~,
315         kf11=\E[23~,
316         kf12=\E[24~,
317         kf13=\EO2P,
318         kf14=\EO2Q,
319         kf15=\EO2R,
320         kf16=\EO2S,
321         kf17=\E[15;2~,
322         kf18=\E[17;2~,
323         kf19=\E[18;2~,
324         kf2=\EOQ,
325         kf20=\E[19;2~,
326         kf21=\E[20;2~,
327         kf22=\E[21;2~,
328         kf23=\E[23;2~,
329         kf24=\E[24;2~,
330         kf25=\EO5P,
331         kf26=\EO5Q,
332         kf27=\EO5R,
333         kf28=\EO5S,
334         kf29=\E[15;5~,
335         kf3=\EOR,
336         kf30=\E[17;5~,
337         kf31=\E[18;5~,
338         kf32=\E[19;5~,
339         kf33=\E[20;5~,
340         kf34=\E[21;5~,
341         kf35=\E[23;5~,
342         kf36=\E[24;5~,
343         kf37=\EO6P,
344         kf38=\EO6Q,
345         kf39=\EO6R,
346         kf4=\EOS,
347         kf40=\EO6S,
348         kf41=\E[15;6~,
349         kf42=\E[17;6~,
350         kf43=\E[18;6~,
351         kf44=\E[19;6~,
352         kf45=\E[20;6~,
353         kf46=\E[21;6~,
354         kf47=\E[23;6~,
355         kf48=\E[24;6~,
356         kf49=\EO3P,
357         kf5=\E[15~,
358         kf50=\EO3Q,
359         kf51=\EO3R,
360         kf52=\EO3S,
361         kf53=\E[15;3~,
362         kf54=\E[17;3~,
363         kf55=\E[18;3~,
364         kf56=\E[19;3~,
365         kf57=\E[20;3~,
366         kf58=\E[21;3~,
367         kf59=\E[23;3~,
368         kf6=\E[17~,
369         kf60=\E[24;3~,
370         kf61=\EO4P,
371         kf62=\EO4Q,
372         kf63=\EO4R,
373         kf7=\E[18~,
374         kf8=\E[19~,
375         kf9=\E[20~,
376
377 # This is almost the same as xterm+pcf2 because the unmodified keys all happen
378 # to have a pattern that forces the modifier to the same position.
379 xterm+pcf1|fragment with modifyFunctionKeys:1,
380         kf1=\EOP,
381         kf10=\E[21~,
382         kf11=\E[23~,
383         kf12=\E[24~,
384         kf13=\E[2P,
385         kf14=\E[2Q,
386         kf15=\E[2R,
387         kf16=\E[2S,
388         kf17=\E[15;2~,
389         kf18=\E[17;2~,
390         kf19=\E[18;2~,
391         kf2=\EOQ,
392         kf20=\E[19;2~,
393         kf21=\E[20;2~,
394         kf22=\E[21;2~,
395         kf23=\E[23;2~,
396         kf24=\E[24;2~,
397         kf25=\E[5P,
398         kf26=\E[5Q,
399         kf27=\E[5R,
400         kf28=\E[5S,
401         kf29=\E[15;5~,
402         kf3=\EOR,
403         kf30=\E[17;5~,
404         kf31=\E[18;5~,
405         kf32=\E[19;5~,
406         kf33=\E[20;5~,
407         kf34=\E[21;5~,
408         kf35=\E[23;5~,
409         kf36=\E[24;5~,
410         kf37=\E[6P,
411         kf38=\E[6Q,
412         kf39=\E[6R,
413         kf4=\EOS,
414         kf40=\E[6S,
415         kf41=\E[15;6~,
416         kf42=\E[17;6~,
417         kf43=\E[18;6~,
418         kf44=\E[19;6~,
419         kf45=\E[20;6~,
420         kf46=\E[21;6~,
421         kf47=\E[23;6~,
422         kf48=\E[24;6~,
423         kf49=\E[3P,
424         kf5=\E[15~,
425         kf50=\E[3Q,
426         kf51=\E[3R,
427         kf52=\E[3S,
428         kf53=\E[15;3~,
429         kf54=\E[17;3~,
430         kf55=\E[18;3~,
431         kf56=\E[19;3~,
432         kf57=\E[20;3~,
433         kf58=\E[21;3~,
434         kf59=\E[23;3~,
435         kf6=\E[17~,
436         kf60=\E[24;3~,
437         kf61=\E[4P,
438         kf62=\E[4Q,
439         kf63=\E[4R,
440         kf7=\E[18~,
441         kf8=\E[19~,
442         kf9=\E[20~,
443
444 xterm+pcf2|fragment with modifyFunctionKeys:2,
445         kf1=\EOP,
446         kf10=\E[21~,
447         kf11=\E[23~,
448         kf12=\E[24~,
449         kf13=\E[1;2P,
450         kf14=\E[1;2Q,
451         kf15=\E[1;2R,
452         kf16=\E[1;2S,
453         kf17=\E[15;2~,
454         kf18=\E[17;2~,
455         kf19=\E[18;2~,
456         kf2=\EOQ,
457         kf20=\E[19;2~,
458         kf21=\E[20;2~,
459         kf22=\E[21;2~,
460         kf23=\E[23;2~,
461         kf24=\E[24;2~,
462         kf25=\E[1;5P,
463         kf26=\E[1;5Q,
464         kf27=\E[1;5R,
465         kf28=\E[1;5S,
466         kf29=\E[15;5~,
467         kf3=\EOR,
468         kf30=\E[17;5~,
469         kf31=\E[18;5~,
470         kf32=\E[19;5~,
471         kf33=\E[20;5~,
472         kf34=\E[21;5~,
473         kf35=\E[23;5~,
474         kf36=\E[24;5~,
475         kf37=\E[1;6P,
476         kf38=\E[1;6Q,
477         kf39=\E[1;6R,
478         kf4=\EOS,
479         kf40=\E[1;6S,
480         kf41=\E[15;6~,
481         kf42=\E[17;6~,
482         kf43=\E[18;6~,
483         kf44=\E[19;6~,
484         kf45=\E[20;6~,
485         kf46=\E[21;6~,
486         kf47=\E[23;6~,
487         kf48=\E[24;6~,
488         kf49=\E[1;3P,
489         kf5=\E[15~,
490         kf50=\E[1;3Q,
491         kf51=\E[1;3R,
492         kf52=\E[1;3S,
493         kf53=\E[15;3~,
494         kf54=\E[17;3~,
495         kf55=\E[18;3~,
496         kf56=\E[19;3~,
497         kf57=\E[20;3~,
498         kf58=\E[21;3~,
499         kf59=\E[23;3~,
500         kf6=\E[17~,
501         kf60=\E[24;3~,
502         kf61=\E[1;4P,
503         kf62=\E[1;4Q,
504         kf63=\E[1;4R,
505         kf7=\E[18~,
506         kf8=\E[19~,
507         kf9=\E[20~,
508
509 xterm+pcf3|fragment with modifyFunctionKeys:3,
510         kf1=\EOP,
511         kf10=\E[21~,
512         kf11=\E[23~,
513         kf12=\E[24~,
514         kf13=\E[>1;2P,
515         kf14=\E[>1;2Q,
516         kf15=\E[>1;2R,
517         kf16=\E[>1;2S,
518         kf17=\E[>15;2~,
519         kf18=\E[>17;2~,
520         kf19=\E[>18;2~,
521         kf2=\EOQ,
522         kf20=\E[>19;2~,
523         kf21=\E[>20;2~,
524         kf22=\E[>21;2~,
525         kf23=\E[>23;2~,
526         kf24=\E[>24;2~,
527         kf25=\E[>1;5P,
528         kf26=\E[>1;5Q,
529         kf27=\E[>1;5R,
530         kf28=\E[>1;5S,
531         kf29=\E[>15;5~,
532         kf3=\EOR,
533         kf30=\E[>17;5~,
534         kf31=\E[>18;5~,
535         kf32=\E[>19;5~,
536         kf33=\E[>20;5~,
537         kf34=\E[>21;5~,
538         kf35=\E[>23;5~,
539         kf36=\E[>24;5~,
540         kf37=\E[>1;6P,
541         kf38=\E[>1;6Q,
542         kf39=\E[>1;6R,
543         kf4=\EOS,
544         kf40=\E[>1;6S,
545         kf41=\E[>15;6~,
546         kf42=\E[>17;6~,
547         kf43=\E[>18;6~,
548         kf44=\E[>19;6~,
549         kf45=\E[>20;6~,
550         kf46=\E[>21;6~,
551         kf47=\E[>23;6~,
552         kf48=\E[>24;6~,
553         kf49=\E[>1;3P,
554         kf5=\E[15~,
555         kf50=\E[>1;3Q,
556         kf51=\E[>1;3R,
557         kf52=\E[>1;3S,
558         kf53=\E[>15;3~,
559         kf54=\E[>17;3~,
560         kf55=\E[>18;3~,
561         kf56=\E[>19;3~,
562         kf57=\E[>20;3~,
563         kf58=\E[>21;3~,
564         kf59=\E[>23;3~,
565         kf6=\E[17~,
566         kf60=\E[>24;3~,
567         kf61=\E[>1;4P,
568         kf62=\E[>1;4Q,
569         kf63=\E[>1;4R,
570         kf7=\E[18~,
571         kf8=\E[19~,
572         kf9=\E[20~,
573 #
574 # The "PC-style" modifier scheme was introduced in xterm patch #94 (1999/3/27)
575 # and revised in patch #167 (2002/8/24).
576 #
577 # The original assignments from patch #94 for cursor-keys had some technical
578 # issues:
579 #
580 #       A parameter for a function-key to represent a modifier is just more
581 #       bits.  But for a cursor-key it may change the behavior of the
582 #       application.  For instance, emacs decodes the first parameter of a
583 #       cursor-key as a repeat count.
584 #
585 #       A parameterized string should (really) not begin with SS3 (\EO).
586 #       Rather, CSI (\E[) should be used.
587 #
588 # For these reasons, the original assignments were deprecated.  For
589 # compatibility reasons, they are still available as a setting of xterm's
590 # modifyCursorKeys resource.  These fragments list the modified cursor-keys
591 # that might apply to xterm+pcfkeys with different values of that resource.
592 xterm+pcc3|fragment with modifyCursorKeys:3,
593         kLFT=\E[>1;2D,
594         kRIT=\E[>1;2C,
595         kind=\E[>1;2B,
596         kri=\E[>1;2A,
597         kDN=\E[>1;2B,
598         kDN3=\E[>1;3B,
599         kDN4=\E[>1;4B,
600         kDN5=\E[>1;5B,
601         kDN6=\E[>1;6B,
602         kDN7=\E[>1;7B,
603         kLFT3=\E[>1;3D,
604         kLFT4=\E[>1;4D,
605         kLFT5=\E[>1;5D,
606         kLFT6=\E[>1;6D,
607         kLFT7=\E[>1;7D,
608         kRIT3=\E[>1;3C,
609         kRIT4=\E[>1;4C,
610         kRIT5=\E[>1;5C,
611         kRIT6=\E[>1;6C,
612         kRIT7=\E[>1;7C,
613         kUP=\E[>1;2A,
614         kUP3=\E[>1;3A,
615         kUP4=\E[>1;4A,
616         kUP5=\E[>1;5A,
617         kUP6=\E[>1;6A,
618         kUP7=\E[>1;7A,
619
620 xterm+pcc2|fragment with modifyCursorKeys:2,
621         kLFT=\E[1;2D,
622         kRIT=\E[1;2C,
623         kind=\E[1;2B,
624         kri=\E[1;2A,
625         kDN=\E[1;2B,
626         kDN3=\E[1;3B,
627         kDN4=\E[1;4B,
628         kDN5=\E[1;5B,
629         kDN6=\E[1;6B,
630         kDN7=\E[1;7B,
631         kLFT3=\E[1;3D,
632         kLFT4=\E[1;4D,
633         kLFT5=\E[1;5D,
634         kLFT6=\E[1;6D,
635         kLFT7=\E[1;7D,
636         kRIT3=\E[1;3C,
637         kRIT4=\E[1;4C,
638         kRIT5=\E[1;5C,
639         kRIT6=\E[1;6C,
640         kRIT7=\E[1;7C,
641         kUP=\E[1;2A,
642         kUP3=\E[1;3A,
643         kUP4=\E[1;4A,
644         kUP5=\E[1;5A,
645         kUP6=\E[1;6A,
646         kUP7=\E[1;7A,
647
648 xterm+pcc1|fragment with modifyCursorKeys:1,
649         kLFT=\E[2D,
650         kRIT=\E[2C,
651         kind=\E[2B,
652         kri=\E[2A,
653         kDN=\E[2B,
654         kDN3=\E[3B,
655         kDN4=\E[4B,
656         kDN5=\E[5B,
657         kDN6=\E[6B,
658         kDN7=\E[7B,
659         kLFT3=\E[3D,
660         kLFT4=\E[4D,
661         kLFT5=\E[5D,
662         kLFT6=\E[6D,
663         kLFT7=\E[7D,
664         kRIT3=\E[3C,
665         kRIT4=\E[4C,
666         kRIT5=\E[5C,
667         kRIT6=\E[6C,
668         kRIT7=\E[7C,
669         kUP=\E[2A,
670         kUP3=\E[3A,
671         kUP4=\E[4A,
672         kUP5=\E[5A,
673         kUP6=\E[6A,
674         kUP7=\E[7A,
675
676 xterm+pcc0|fragment with modifyCursorKeys:0,
677         kLFT=\EO2D,
678         kRIT=\EO2C,
679         kind=\EO2B,
680         kri=\EO2A,
681         kDN=\EO2B,
682         kDN3=\EO3B,
683         kDN4=\EO4B,
684         kDN5=\EO5B,
685         kDN6=\EO6B,
686         kDN7=\EO7B,
687         kLFT3=\EO3D,
688         kLFT4=\EO4D,
689         kLFT5=\EO5D,
690         kLFT6=\EO6D,
691         kLFT7=\EO7D,
692         kRIT3=\EO3C,
693         kRIT4=\EO4C,
694         kRIT5=\EO5C,
695         kRIT6=\EO6C,
696         kRIT7=\EO7C,
697         kUP=\EO2A,
698         kUP3=\EO3A,
699         kUP4=\EO4A,
700         kUP5=\EO5A,
701         kUP6=\EO6A,
702         kUP7=\EO7A,
703
704 # The home/end keys on the editing keypad are also treated as cursor keys.
705 xterm+pce3|fragment with modifyCursorKeys:3,
706         kDC=\E[>3;2~,
707         kEND=\E[>1;2F,
708         kHOM=\E[>1;2H,
709         kIC=\E[>2;2~,
710         kNXT=\E[>6;2~,
711         kPRV=\E[>5;2~,
712         kDC3=\E[>3;3~,
713         kDC4=\E[>3;4~,
714         kDC5=\E[>3;5~,
715         kDC6=\E[>3;6~,
716         kDC7=\E[>3;7~,
717         kEND3=\E[>1;3F,
718         kEND4=\E[>1;4F,
719         kEND5=\E[>1;5F,
720         kEND6=\E[>1;6F,
721         kEND7=\E[>1;7F,
722         kHOM3=\E[>1;3H,
723         kHOM4=\E[>1;4H,
724         kHOM5=\E[>1;5H,
725         kHOM6=\E[>1;6H,
726         kHOM7=\E[>1;7H,
727         kIC3=\E[>2;3~,
728         kIC4=\E[>2;4~,
729         kIC5=\E[>2;5~,
730         kIC6=\E[>2;6~,
731         kIC7=\E[>2;7~,
732         kNXT3=\E[>6;3~,
733         kNXT4=\E[>6;4~,
734         kNXT5=\E[>6;5~,
735         kNXT6=\E[>6;6~,
736         kNXT7=\E[>6;7~,
737         kPRV3=\E[>5;3~,
738         kPRV4=\E[>5;4~,
739         kPRV5=\E[>5;5~,
740         kPRV6=\E[>5;6~,
741         kPRV7=\E[>5;7~,
742         use=xterm+pce0,
743
744 xterm+pce2|fragment with modifyCursorKeys:2,
745         kDC=\E[3;2~,
746         kEND=\E[1;2F,
747         kHOM=\E[1;2H,
748         kIC=\E[2;2~,
749         kNXT=\E[6;2~,
750         kPRV=\E[5;2~,
751         kDC3=\E[3;3~,
752         kDC4=\E[3;4~,
753         kDC5=\E[3;5~,
754         kDC6=\E[3;6~,
755         kDC7=\E[3;7~,
756         kEND3=\E[1;3F,
757         kEND4=\E[1;4F,
758         kEND5=\E[1;5F,
759         kEND6=\E[1;6F,
760         kEND7=\E[1;7F,
761         kHOM3=\E[1;3H,
762         kHOM4=\E[1;4H,
763         kHOM5=\E[1;5H,
764         kHOM6=\E[1;6H,
765         kHOM7=\E[1;7H,
766         kIC3=\E[2;3~,
767         kIC4=\E[2;4~,
768         kIC5=\E[2;5~,
769         kIC6=\E[2;6~,
770         kIC7=\E[2;7~,
771         kNXT3=\E[6;3~,
772         kNXT4=\E[6;4~,
773         kNXT5=\E[6;5~,
774         kNXT6=\E[6;6~,
775         kNXT7=\E[6;7~,
776         kPRV3=\E[5;3~,
777         kPRV4=\E[5;4~,
778         kPRV5=\E[5;5~,
779         kPRV6=\E[5;6~,
780         kPRV7=\E[5;7~,
781         use=xterm+pce0,
782
783 xterm+pce1|fragment with modifyCursorKeys:1,
784         kDC=\E[3;2~,
785         kEND=\E[2F,
786         kHOM=\E[2H,
787         kIC=\E[2;2~,
788         kNXT=\E[6;2~,
789         kPRV=\E[5;2~,
790         kDC3=\E[3;3~,
791         kDC4=\E[3;4~,
792         kDC5=\E[3;5~,
793         kDC6=\E[3;6~,
794         kDC7=\E[3;7~,
795         kEND3=\E[3F,
796         kEND4=\E[4F,
797         kEND5=\E[5F,
798         kEND6=\E[6F,
799         kEND7=\E[7F,
800         kHOM3=\E[3H,
801         kHOM4=\E[4H,
802         kHOM5=\E[5H,
803         kHOM6=\E[6H,
804         kHOM7=\E[7H,
805         kIC3=\E[2;3~,
806         kIC4=\E[2;4~,
807         kIC5=\E[2;5~,
808         kIC6=\E[2;6~,
809         kIC7=\E[2;7~,
810         kNXT3=\E[6;3~,
811         kNXT4=\E[6;4~,
812         kNXT5=\E[6;5~,
813         kNXT6=\E[6;6~,
814         kNXT7=\E[6;7~,
815         kPRV3=\E[5;3~,
816         kPRV4=\E[5;4~,
817         kPRV5=\E[5;5~,
818         kPRV6=\E[5;6~,
819         kPRV7=\E[5;7~,
820         use=xterm+pce0,
821
822 xterm+pce0|fragment with modifyCursorKeys:0,
823         kDC=\E[3;2~,
824         kEND=\EO2F,
825         kHOM=\EO2H,
826         kIC=\E[2;2~,
827         kNXT=\E[6;2~,
828         kPRV=\E[5;2~,
829         kDC3=\E[3;3~,
830         kDC4=\E[3;4~,
831         kDC5=\E[3;5~,
832         kDC6=\E[3;6~,
833         kDC7=\E[3;7~,
834         kEND3=\EO3F,
835         kEND4=\EO4F,
836         kEND5=\EO5F,
837         kEND6=\EO6F,
838         kEND7=\EO7F,
839         kHOM3=\EO3H,
840         kHOM4=\EO4H,
841         kHOM5=\EO5H,
842         kHOM6=\EO6H,
843         kHOM7=\EO7H,
844         kIC3=\E[2;3~,
845         kIC4=\E[2;4~,
846         kIC5=\E[2;5~,
847         kIC6=\E[2;6~,
848         kIC7=\E[2;7~,
849         kNXT3=\E[6;3~,
850         kNXT4=\E[6;4~,
851         kNXT5=\E[6;5~,
852         kNXT6=\E[6;6~,
853         kNXT7=\E[6;7~,
854         kPRV3=\E[5;3~,
855         kPRV4=\E[5;4~,
856         kPRV5=\E[5;5~,
857         kPRV6=\E[5;6~,
858         kPRV7=\E[5;7~,
859         use=xterm+edit,
860 #
861 # This chunk is used for building the VT220/Sun/PC keyboard variants.
862 xterm-basic|modern xterm terminal emulator - common,
863         OTbs,
864         am,
865         bce,
866         km,
867         mc5i,
868         mir,
869         msgr,
870         xenl,
871         AX,
872         colors#8,
873         cols#80,
874         it#8,
875         lines#24,
876         pairs#64,
877         acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
878         bel=^G,
879         blink=\E[5m,
880         bold=\E[1m,
881         cbt=\E[Z,
882         civis=\E[?25l,
883         clear=\E[H\E[2J,
884         cnorm=\E[?12l\E[?25h,
885         cr=^M,
886         csr=\E[%i%p1%d;%p2%dr,
887         cub=\E[%p1%dD,
888         cub1=^H,
889         cud=\E[%p1%dB,
890         cud1=^J,
891         cuf=\E[%p1%dC,
892         cuf1=\E[C,
893         cup=\E[%i%p1%d;%p2%dH,
894         cuu=\E[%p1%dA,
895         cuu1=\E[A,
896         cvvis=\E[?12;25h,
897         dch=\E[%p1%dP,
898         dch1=\E[P,
899         dl=\E[%p1%dM,
900         dl1=\E[M,
901         ech=\E[%p1%dX,
902         ed=\E[J,
903         el=\E[K,
904         el1=\E[1K,
905         flash=\E[?5h$<100/>\E[?5l,
906         home=\E[H,
907         hpa=\E[%i%p1%dG,
908         ht=^I,
909         hts=\EH,
910         ich=\E[%p1%d@,
911         il=\E[%p1%dL,
912         il1=\E[L,
913         ind=^J,
914         invis=\E[8m,
915         is2=\E[!p\E[?3;4l\E[4l\E>,
916         kbs=^H,
917         kmous=\E[M,
918         mc0=\E[i,
919         mc4=\E[4i,
920         mc5=\E[5i,
921         meml=\El,
922         memu=\Em,
923         op=\E[39;49m,
924         rc=\E8,
925         rev=\E[7m,
926         ri=\EM,
927         rmacs=\E(B,
928         rmam=\E[?7l,
929         rmcup=\E[?1049l,
930         rmir=\E[4l,
931         rmkx=\E[?1l\E>,
932         rmm=\E[?1034l,
933         rmso=\E[27m,
934         rmul=\E[24m,
935         rs1=\Ec,
936         rs2=\E[!p\E[?3;4l\E[4l\E>,
937         sc=\E7,
938         setab=\E[4%p1%dm,
939         setaf=\E[3%p1%dm,
940         setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
941         setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
942         sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
943         sgr0=\E(B\E[m,
944         smacs=\E(0,
945         smam=\E[?7h,
946         smcup=\E[?1049h,
947         smir=\E[4h,
948         smkx=\E[?1h\E=,
949         smm=\E[?1034h,
950         smso=\E[7m,
951         smul=\E[4m,
952         tbc=\E[3g,
953         u6=\E[%i%d;%dR,
954         u7=\E[6n,
955         u8=\E[?1;2c,
956         u9=\E[c,
957         vpa=\E[%i%p1%dd,
958 # xterm-debian is identical to xterm-new except that it more strictly
959 # conforms to DEC VT220 behavior in the case of the backspace key; this is
960 # mandated by the Section 9.8 of the Debian Policy Manual.  Also see
961 # <http://vt100.net/docs/vt220-rm/>.
962 xterm-debian|Debian xterm (VT220-conformant backspace),
963         kbs=\177,
964         rmm@,
965         smm@,
966         use=xterm-new,
967 #
968 # The xterm-new description has all of the features, but is not completely
969 # compatible with vt220.  If you are using a Sun or PC keyboard, set the
970 # sunKeyboard resource to true:
971 #       + maps the editing keypad
972 #       + interprets control-function-key as a second array of keys, so a
973 #         12-fkey keyboard can support vt220's 20-fkeys.
974 #       + maps numeric keypad "+" to ",".
975 #       + uses DEC-style control sequences for the application keypad.
976 #
977 # Some packagers modify xterm's resource definitions to provide extra function
978 # keys by using the shift-modifier in the translations resource.  However, that
979 # interferes with the DECUDK functionality.
980 #
981 xterm-vt220|xterm emulating vt220,
982         ka1=\EOw,
983         ka3=\EOy,
984         kb2=\EOu,
985         kc1=\EOq,
986         kc3=\EOs,
987         kcbt=\E[Z,
988         kend=\E[4~,
989         kent=\EOM,
990         kf1=\EOP,
991         kf10=\E[21~,
992         kf11=\E[23~,
993         kf12=\E[24~,
994         kf13=\E[25~,
995         kf14=\E[26~,
996         kf15=\E[28~,
997         kf16=\E[29~,
998         kf17=\E[31~,
999         kf18=\E[32~,
1000         kf19=\E[33~,
1001         kf2=\EOQ,
1002         kf20=\E[34~,
1003         kf3=\EOR,
1004         kf4=\EOS,
1005         kf5=\E[15~,
1006         kf6=\E[17~,
1007         kf7=\E[18~,
1008         kf8=\E[19~,
1009         kf9=\E[20~,
1010         khome=\E[1~,
1011         kich1=\E[2~,
1012         knp=\E[6~,
1013         kpp=\E[5~,
1014         ka2=\EOx,
1015         kb1=\EOt,
1016         kb3=\EOv,
1017         kc2=\EOr,
1018         use=xterm+app,
1019         use=xterm+edit,
1020         use=xterm-basic,
1021 #
1022 xterm-vt52|xterm emulating dec vt52,
1023         cols#80,
1024         it#8,
1025         lines#24,
1026         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1027         bel=^G,
1028         clear=\EH\EJ,
1029         cr=^M,
1030         cub1=\ED,
1031         cud1=\EB,
1032         cuf1=\EC,
1033         cup=\EY%p1%' '%+%c%p2%' '%+%c,
1034         cuu1=\EA,
1035         ed=\EJ,
1036         el=\EK,
1037         home=\EH,
1038         ht=^I,
1039         ind=^J,
1040         kbs=^H,
1041         kcub1=\ED,
1042         kcud1=\EB,
1043         kcuf1=\EC,
1044         kcuu1=\EA,
1045         nel=^M^J,
1046         ri=\EI,
1047         rmacs=\EG,
1048         smacs=\EF,
1049 #
1050 # Sun does not number the function keys this way in their sparse termcap; their
1051 # terminal descriptions ignore the keypads.  kb(7M) states that there are codes
1052 # reserved for 64 function keys, 16 each in left, right, top and bottom.  Each
1053 # keyboard type has a different number of function keys in different
1054 # arrangements.  Using xkeycaps for reference:
1055 #
1056 # Type 3:  left 10, top 9, right 15
1057 # ------
1058 # kf1-kf9 are XK_F1-XK_F9
1059 # There is no kf10 on this keyboard type.
1060 # kf11-kf20 are keysyms XK_L1 through XK_L10.
1061 # kf31-kf45 are keysyms XK_R1 through XK_R15.
1062 #
1063 # However, X's keysymdef.h is hard-coded to make
1064 #       XK_L1==XK_F11 and
1065 #       XK_R1==XK_F21,
1066 # by someone who was unfamiliar with terminal types other than Sun's.  So
1067 # xterm uses the internal X keysymbols, but the terminfo entry uses the Sun
1068 # numbering scheme.
1069 #
1070 # Type 4:  left 11, top 12, right 15
1071 # ------
1072 # The left-keypad contains an unnumbered Help-key.
1073 # The right-keypad also contains NumLock, Ins, Del, Enter, + and - keys which
1074 # do not appear to be part of the R-sequence.
1075 #
1076 # Type 5:  left 9, top 12, right (more than one keypad)
1077 # ------
1078 # These keyboards do not use the same naming convention, look like a hybrid of
1079 # the type 4 and IBM keyboards.
1080 #
1081 # XTerm resources:
1082 # ---------------
1083 # Set the modifyFunctionKeys resource to negative (-1) to make it simple to
1084 # enter the higher function-key values using shift- and control-modifiers.
1085 #
1086 xterm-sun|xterm with sun function keys,
1087         kb2=\E[218z,
1088         kcpy=\E[197z,
1089         kcub1=\EOD,
1090         kcud1=\EOB,
1091         kcuf1=\EOC,
1092         kcuu1=\EOA,
1093         kdch1=\E[3z,
1094         kend=\E[220z,
1095         kent=\EOM,
1096         kf1=\E[224z,
1097         kf10=\E[233z,
1098         kf11=\E[192z,
1099         kf12=\E[193z,
1100         kf13=\E[194z,
1101         kf14=\E[195z,
1102         kf15=\E[196z,
1103         kf17=\E[198z,
1104         kf18=\E[199z,
1105         kf19=\E[200z,
1106         kf2=\E[225z,
1107         kf20=\E[201z,
1108         kf3=\E[226z,
1109         kf31=\E[208z,
1110         kf32=\E[209z,
1111         kf33=\E[210z,
1112         kf34=\E[211z,
1113         kf35=\E[212z,
1114         kf36=\E[213z,
1115         kf38=\E[215z,
1116         kf4=\E[227z,
1117         kf40=\E[217z,
1118         kf42=\E[219z,
1119         kf44=\E[221z,
1120         kf45=\E[222z,
1121         kf46=\E[234z,
1122         kf47=\E[235z,
1123         kf5=\E[228z,
1124         kf6=\E[229z,
1125         kf7=\E[230z,
1126         kf8=\E[231z,
1127         kf9=\E[232z,
1128         kfnd=\E[200z,
1129         khlp=\E[196z,
1130         khome=\E[214z,
1131         kich1=\E[2z,
1132         knp=\E[222z,
1133         kpp=\E[216z,
1134         kund=\E[195z,
1135         use=xterm-basic,
1136 #
1137 xterm-hp|xterm with hpterm function keys,
1138         kclr=\EJ,
1139         kcub1=\ED,
1140         kcud1=\EB,
1141         kcuf1=\EC,
1142         kcuu1=\EA,
1143         kdch1=\EP,
1144         kend=\EF,
1145         kf1=\Ep,
1146         kf2=\Eq,
1147         kf3=\Er,
1148         kf4=\Es,
1149         kf5=\Et,
1150         kf6=\Eu,
1151         kf7=\Ev,
1152         kf8=\Ew,
1153         khome=\Eh,
1154         kich1=\EQ,
1155         knp=\ES,
1156         kpp=\ET,
1157         use=xterm-basic,
1158 #
1159 # scoterm implements 48 function-keys using shift- and control-modifiers to
1160 # multiple 12 function-keys.  X has a hard-coded limit of 35 function-keys,
1161 # but xterm can represent larger values.
1162 #
1163 # XTerm resources:
1164 # ---------------
1165 # Set the modifyFunctionKeys resource to negative (-1) to make it simple to
1166 # enter the higher function-key values using shift- and control-modifiers.
1167 #
1168 # Also, set ctrlFKeys resource to 12 (the default is 10) to make xterm see 48
1169 # function-keys on a keyboard with 12 function-keys and 4 control/shift
1170 # modifier combinations.
1171 #
1172 xterm-sco|xterm with SCO function keys,
1173         kbeg=\E[E,
1174         kdch1=\177,
1175         kf1=\E[M,
1176         kf10=\E[V,
1177         kf11=\E[W,
1178         kf12=\E[X,
1179         kf13=\E[Y,
1180         kf14=\E[Z,
1181         kf15=\E[a,
1182         kf16=\E[b,
1183         kf17=\E[c,
1184         kf18=\E[d,
1185         kf19=\E[e,
1186         kf2=\E[N,
1187         kf20=\E[f,
1188         kf21=\E[g,
1189         kf22=\E[h,
1190         kf23=\E[i,
1191         kf24=\E[j,
1192         kf25=\E[k,
1193         kf26=\E[l,
1194         kf27=\E[m,
1195         kf28=\E[n,
1196         kf29=\E[o,
1197         kf3=\E[O,
1198         kf30=\E[p,
1199         kf31=\E[q,
1200         kf32=\E[r,
1201         kf33=\E[s,
1202         kf34=\E[t,
1203         kf35=\E[u,
1204         kf36=\E[v,
1205         kf37=\E[w,
1206         kf38=\E[x,
1207         kf39=\E[y,
1208         kf4=\E[P,
1209         kf40=\E[z,
1210         kf41=\E[@,
1211         kf42=\E[[,
1212         kf43=\E[\\,
1213         kf44=\E[],
1214         kf45=\E[\^,
1215         kf46=\E[_,
1216         kf47=\E[`,
1217         kf48=\E[{,
1218         kf5=\E[Q,
1219         kf6=\E[R,
1220         kf7=\E[S,
1221         kf8=\E[T,
1222         kf9=\E[U,
1223         kich1=\E[L,
1224         kmous=\E[>M,
1225         knp=\E[G,
1226         kpp=\E[I,
1227         use=xterm+noapp,
1228         use=xterm-basic,
1229 #
1230 # Other variants (these are all very old entries, from X11R5):
1231 xterm-24|xterms|vs100|xterm terminal emulator (X Window System),
1232         lines#24,
1233         use=xterm-old,
1234 xterm-65|xterm with tall window 65x80 (X Window System),
1235         lines#65,
1236         use=xterm-old,
1237 xterm-bold|xterm with bold instead of underline (X Window System),
1238         smso=\E[7m,
1239         smul=\E[1m,
1240         use=xterm-old,
1241 xterm-boldso|xterm with bold for standout (X Window System),
1242         rmso=\E[m,
1243         smso=\E[1m,
1244         use=xterm-old,
1245 xterm-mono|monochrome xterm,
1246         bce@,
1247         colors@,
1248         ncv@,
1249         pairs@,
1250         op@,
1251         setab@,
1252         setaf@,
1253         setb@,
1254         setf@,
1255         sgr@,
1256         use=xterm-old,
1257 #
1258 # VTxxx terminals are usually set up so that full-screen applications will use
1259 # the cursor application mode strings.  This is good for full-screen
1260 # applications, including legacy applications which may have hard-coded
1261 # behavior, but bad for interactive shells (e.g., tcsh, bash) which use arrow
1262 # keys to scroll through a history of command strings.
1263 #
1264 # To see the difference between normal/application modes, consider this example:
1265 #       + In normal (non-application) mode, the terminal transmits a down-arrow
1266 #         as \E[C, which happens to echo as a down-arrow.
1267 #       + In application mode the terminal transmits \EOC, which echoes as C.
1268 #         That is because the \EO is the SS3 control, which says to use the
1269 #         character from the G3 character set for the next cell.
1270 #
1271 # One example of hard-coded behavior would be for applications written to work
1272 # with VT52 and VT100 terminals.  If the application's parser ignores 'O' and
1273 # '?' characters after the escape, then the cursor and keypad strings for the
1274 # two terminals are the same.  (Indeed, one of the first curses applications
1275 # which I used did something like this to cover "ANSI" terminals -TD).
1276 #
1277 # To make this work (leaving the cursor keys in normal mode), we have to adjust
1278 # the terminal initialization sequences:
1279 #
1280 #       smkx/rmkx set/reset the cursor and keypad application modes.  We retain
1281 #               the latter (otherwise many applications fail).
1282 #
1283 #       smcup/rmcup set/restore cursor-addressing mode for full-screen
1284 #               applications.  For xterm, this normally means the alternate
1285 #               screen, which is not compatible with interactive shells.  Some
1286 #               programs are "smart" and disable these.
1287 #
1288 xterm-noapp|xterm with cursor keys in normal mode,
1289         rmcup@,
1290         rmkx=\E>,
1291         smcup@,
1292         smkx=\E=,
1293         use=xterm+noapp,
1294         use=xterm,
1295
1296 xterm+noapp|fragment with cursor keys in normal mode,
1297         kcub1=\E[D,
1298         kcud1=\E[B,
1299         kcuf1=\E[C,
1300         kcuu1=\E[A,
1301         use=xterm+noapp+pc,
1302
1303 xterm+app|fragment with cursor keys in application mode,
1304         kcub1=\EOD,
1305         kcud1=\EOB,
1306         kcuf1=\EOC,
1307         kcuu1=\EOA,
1308         use=xterm+app+pc,
1309
1310 xterm+noapp+pc|fragment for noapp pc-style home/end,
1311         kend=\E[F,
1312         khome=\E[H,
1313
1314 xterm+app+pc|fragment for app pc-style home/end,
1315         kend=\EOF,
1316         khome=\EOH,
1317
1318 xterm+edit|fragment for 6-key editing-keypad,
1319         kdch1=\E[3~,
1320         kich1=\E[2~,
1321         knp=\E[6~,
1322         kpp=\E[5~,
1323         use=xterm+pc+edit,
1324
1325 xterm+decedit|fragment for vt220 6-key editing-keypad,
1326         kdch1=\E[3~,
1327         kich1=\E[2~,
1328         knp=\E[6~,
1329         kpp=\E[5~,
1330         use=xterm+vt+edit,
1331
1332 xterm+pc+edit|fragment for pc-style editing keypad,
1333         kend=\E[4~,
1334         khome=\E[1~,
1335
1336 xterm+vt+edit|fragment for vt220-style editing keypad,
1337         kfnd=\E[1~,
1338         kslt=\E[4~,
1339
1340 #
1341 # This should work for the commonly used "color xterm" variations (XFree86
1342 # xterm, color_xterm, nxterm, rxvt).  Note that it does not set 'bce', so for
1343 # XFree86 and and rxvt, some applications that use colors will be less
1344 # efficient, and in a few special cases (with "smart" optimization) the wrong
1345 # color will be painted in spots.
1346 xterm-color|generic "ANSI" color xterm (X Window System),
1347         colors#8,
1348         ncv@,
1349         pairs#64,
1350         op=\E[m,
1351         setab=\E[4%p1%dm,
1352         setaf=\E[3%p1%dm,
1353         use=xterm-r6,
1354 #
1355 # vi may work better with this entry, because vi
1356 # doesn't use insert mode much
1357 xterm-ic|xterm-vi|xterm with insert character instead of insert mode,
1358         mir@,
1359         ich=\E[%p1%d@,
1360         ich1=\E[@,
1361         rmir@,
1362         smir@,
1363         use=xterm,
1364 #
1365 # This is used only for testing (it's not relevant to DEC VTxxx terminals, but
1366 # to ncurses).
1367 xterm-xmc|xterm with magic-cookie glitch,
1368         xmc#1,
1369         use=xterm-new,
1370 #
1371 # This one also is primarily for testing ncurses; while the ISO 6429 defines
1372 # the REP control, none of the DEC VTxxx terminals (VT52 through VT420) support
1373 # it.
1374 xterm-rep|xterm with repeat-character control,
1375         rep=%p1%c\E[%p2%{1}%-%db,
1376         use=xterm-new,
1377 #
1378 # This is mainly for testing xterm; the real VT220 will not let you switch
1379 # character sets without first altering the keyboard language in the setup
1380 # screen.  Some emulators allow this anyway.  (Note that these strings are
1381 # normally used only for printers).  The parameter to csnm and scs is the same
1382 # in both cases:  the keyboard language parameter returned by CSI ? 2 6 n.
1383 xterm-nrc|xterm with VT220 national replacement character sets,
1384         csnm=%?%p1%{1}%=%tNorth American%e%p1%{2}%=%tBritish%e%p1%{3}%=%tFlemish%e%p1%{4}%=%tFrench Canadian%e%p1%{5}%=%tDanish%e%p1%{6}%=%tFinnish%e%p1%{7}%=%tGerman%e%p1%{8}%=%tDutch%e%p1%{9}%=%tItalian%e%p1%{10}%=%tSwiss (French)%e%p1%{11}%=%tSwiss (German)%e%p1%{12}%=%tSwedish%e%p1%{13}%=%tNorwegian%e%p1%{14}%=%tFrench/Belgian%e%p1%{15}%=%tSpanish%;,
1385         scs=%?%p1%{1}%=%t\E(B%e%p1%{2}%=%t\E(A%e%p1%{3}%=%t\E(R%e%p1%{4}%=%t\E(9%e%p1%{5}%=%t\E(E%e%p1%{6}%=%t\E(5%e%p1%{7}%=%t\E(K%e%p1%{8}%=%t\E(4%e%p1%{9}%=%t\E(Y%e%p1%{10}%=%t\E(=%e%p1%{11}%=%t\E(=%e%p1%{12}%=%t\E(7%e%p1%{13}%=%t\E(E%e%p1%{14}%=%t\E(R%e%p1%{15}%=%t\E(Z%;,
1386         use=xterm-new,
1387 #
1388 # Foreground 0-15 maps (with toggles) into 30-37 & 90-97
1389 # Background 0-15 maps (with toggles) into 40-47 & 100-107
1390 #
1391 # Originally I suppressed setaf/setab, since ANSI specifies only 8 colors, but
1392 # Stephen Marley persuaded me to allow the "ANSI" color controls to extend to
1393 # 16 colors.  (Note that ncurses 4.2 uses setf/setb from this description;
1394 # however 5.0 selects either according to their availability).  - T.Dickey
1395 #
1396 # SVr4 curses does not use more than 8 colors anyway, so using 16 colors is
1397 # either for terminfo-level applications or via ncurses.
1398 xterm-16color|xterm with 16 colors,
1399         colors#16,
1400         pairs#256,
1401         setab=\E[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm,
1402         setaf=\E[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm,
1403         setb=%p1%{8}%/%{6}%*%{4}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m,
1404         setf=%p1%{8}%/%{6}%*%{3}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m,
1405         use=xterm-debian,
1406 #
1407 # This uses RGB values 0..1000
1408 #
1409 # 256 colors should give 65536 pairs, but terminfo stores numbers in a signed
1410 # short.  Most people will not notice problems with only 32767 pairs.
1411 xterm-256color|xterm with 256 colors,
1412         ccc,
1413         colors#256,
1414         pairs#32767,
1415         initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
1416         setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
1417         setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
1418         setb@,
1419         setf@,
1420         use=xterm-debian,
1421 xterm-88color|xterm with 88 colors,
1422         colors#88,
1423         pairs#7744,
1424         use=xterm-256color,
1425 #
1426 # This is an 8-bit version of xterm, which emulates DEC vt220 with ANSI color.
1427 # To use it, your decTerminalID resource must be set to 200 or above, and the
1428 # sunKeyboard resource set to true.
1429 #
1430 #       HTS     \E H    \210
1431 #       RI      \E M    \215
1432 #       SS3     \E O    \217
1433 #       CSI     \E [    \233
1434 #
1435 xterm-8bit|xterm terminal emulator with 8-bit controls (X Window System),
1436         OTbs,
1437         am,
1438         bce,
1439         km,
1440         mc5i,
1441         mir,
1442         msgr,
1443         npc,
1444         xenl,
1445         AX,
1446         colors#8,
1447         cols#80,
1448         it#8,
1449         lines#24,
1450         pairs#64,
1451         acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1452         bel=^G,
1453         blink=\2335m,
1454         bold=\2331m,
1455         cbt=\233Z,
1456         civis=\233?25l,
1457         clear=\233H\2332J,
1458         cnorm=\233?25l\233?25h,
1459         cr=^M,
1460         csr=\233%i%p1%d;%p2%dr,
1461         cub=\233%p1%dD,
1462         cub1=^H,
1463         cud=\233%p1%dB,
1464         cud1=^J,
1465         cuf=\233%p1%dC,
1466         cuf1=\233C,
1467         cup=\233%i%p1%d;%p2%dH,
1468         cuu=\233%p1%dA,
1469         cuu1=\233A,
1470         cvvis=\233?12;25h,
1471         dch=\233%p1%dP,
1472         dch1=\233P,
1473         dl=\233%p1%dM,
1474         dl1=\233M,
1475         ech=\233%p1%dX,
1476         ed=\233J,
1477         el=\233K,
1478         el1=\2331K,
1479         flash=\233?5h$<100/>\233?5l,
1480         home=\233H,
1481         hpa=\233%i%p1%dG,
1482         ht=^I,
1483         hts=\210,
1484         ich=\233%p1%d@,
1485         il=\233%p1%dL,
1486         il1=\233L,
1487         ind=^J,
1488         invis=\2338m,
1489         is2=\E[62"p\E G\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r\E8,
1490         ka1=\217w,
1491         ka3=\217u,
1492         kb2=\217y,
1493         kbeg=\217E,
1494         kbs=^H,
1495         kc1=\217q,
1496         kc3=\217s,
1497         kcbt=\233Z,
1498         kcub1=\217D,
1499         kcud1=\217B,
1500         kcuf1=\217C,
1501         kcuu1=\217A,
1502         kdch1=\2333~,
1503         kend=\2334~,
1504         kent=\217M,
1505         kf1=\23311~,
1506         kf10=\23321~,
1507         kf11=\23323~,
1508         kf12=\23324~,
1509         kf13=\23325~,
1510         kf14=\23326~,
1511         kf15=\23328~,
1512         kf16=\23329~,
1513         kf17=\23331~,
1514         kf18=\23332~,
1515         kf19=\23333~,
1516         kf2=\23312~,
1517         kf20=\23334~,
1518         kf3=\23313~,
1519         kf4=\23314~,
1520         kf5=\23315~,
1521         kf6=\23317~,
1522         kf7=\23318~,
1523         kf8=\23319~,
1524         kf9=\23320~,
1525         khome=\2331~,
1526         kich1=\2332~,
1527         kmous=\233M,
1528         knp=\2336~,
1529         kpp=\2335~,
1530         mc0=\233i,
1531         mc4=\2334i,
1532         mc5=\2335i,
1533         meml=\El,
1534         memu=\Em,
1535         op=\23339;49m,
1536         rc=\E8,
1537         rev=\2337m,
1538         ri=\215,
1539         rmacs=\E(B,
1540         rmam=\233?7l,
1541         rmcup=\233?1049l,
1542         rmir=\2334l,
1543         rmkx=\233?1l\E>,
1544         rmso=\23327m,
1545         rmul=\23324m,
1546         rs1=\Ec,
1547         rs2=\E[62"p\E G\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r\E8,
1548         sc=\E7,
1549         setab=\2334%p1%dm,
1550         setaf=\2333%p1%dm,
1551         setb=\2334%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
1552         setf=\2333%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
1553         sgr=\2330%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
1554         sgr0=\2330m\E(B,
1555         smacs=\E(0,
1556         smam=\233?7h,
1557         smcup=\233?1049h,
1558         smir=\2334h,
1559         smkx=\233?1h\E=,
1560         smso=\2337m,
1561         smul=\2334m,
1562         tbc=\2333g,
1563         u6=\233[%i%d;%dR,
1564         u7=\E[6n,
1565         u8=\233[?1;2c,
1566         u9=\E[c,
1567         vpa=\233%i%p1%dd,
1568 #
1569 xterm-xf86-v44|xterm terminal emulator (XFree86 4.4 Window System),
1570         OTbs,
1571         am,
1572         bce,
1573         km,
1574         mc5i,
1575         mir,
1576         msgr,
1577         npc,
1578         xenl,
1579         AX,
1580         colors#8,
1581         cols#80,
1582         it#8,
1583         lines#24,
1584         pairs#64,
1585         acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1586         bel=^G,
1587         blink=\E[5m,
1588         bold=\E[1m,
1589         cbt=\E[Z,
1590         civis=\E[?25l,
1591         clear=\E[H\E[2J,
1592         cnorm=\E[?12l\E[?25h,
1593         cr=^M,
1594         csr=\E[%i%p1%d;%p2%dr,
1595         cub=\E[%p1%dD,
1596         cub1=^H,
1597         cud=\E[%p1%dB,
1598         cud1=^J,
1599         cuf=\E[%p1%dC,
1600         cuf1=\E[C,
1601         cup=\E[%i%p1%d;%p2%dH,
1602         cuu=\E[%p1%dA,
1603         cuu1=\E[A,
1604         cvvis=\E[?12;25h,
1605         dch=\E[%p1%dP,
1606         dch1=\E[P,
1607         dl=\E[%p1%dM,
1608         dl1=\E[M,
1609         ech=\E[%p1%dX,
1610         ed=\E[J,
1611         el=\E[K,
1612         el1=\E[1K,
1613         enacs=\E(B\E)0,
1614         flash=\E[?5h$<100/>\E[?5l,
1615         home=\E[H,
1616         hpa=\E[%i%p1%dG,
1617         ht=^I,
1618         hts=\EH,
1619         ich=\E[%p1%d@,
1620         il=\E[%p1%dL,
1621         il1=\E[L,
1622         ind=^J,
1623         indn=\E[%p1%dS,
1624         invis=\E[8m,
1625         is2=\E[!p\E[?3;4l\E[4l\E>,
1626         kDC=\E[3;2~,
1627         kEND=\E[1;2F,
1628         kHOM=\E[1;2H,
1629         kIC=\E[2;2~,
1630         kLFT=\E[1;2D,
1631         kNXT=\E[6;2~,
1632         kPRV=\E[5;2~,
1633         kRIT=\E[1;2C,
1634         kb2=\EOE,
1635         kbs=^H,
1636         kcbt=\E[Z,
1637         kcub1=\EOD,
1638         kcud1=\EOB,
1639         kcuf1=\EOC,
1640         kcuu1=\EOA,
1641         kdch1=\E[3~,
1642         kend=\EOF,
1643         kent=\EOM,
1644         kf1=\EOP,
1645         kf10=\E[21~,
1646         kf11=\E[23~,
1647         kf12=\E[24~,
1648         kf13=\EO2P,
1649         kf14=\EO2Q,
1650         kf15=\EO2R,
1651         kf16=\EO2S,
1652         kf17=\E[15;2~,
1653         kf18=\E[17;2~,
1654         kf19=\E[18;2~,
1655         kf2=\EOQ,
1656         kf20=\E[19;2~,
1657         kf21=\E[20;2~,
1658         kf22=\E[21;2~,
1659         kf23=\E[23;2~,
1660         kf24=\E[24;2~,
1661         kf25=\EO5P,
1662         kf26=\EO5Q,
1663         kf27=\EO5R,
1664         kf28=\EO5S,
1665         kf29=\E[15;5~,
1666         kf3=\EOR,
1667         kf30=\E[17;5~,
1668         kf31=\E[18;5~,
1669         kf32=\E[19;5~,
1670         kf33=\E[20;5~,
1671         kf34=\E[21;5~,
1672         kf35=\E[23;5~,
1673         kf36=\E[24;5~,
1674         kf37=\EO6P,
1675         kf38=\EO6Q,
1676         kf39=\EO6R,
1677         kf4=\EOS,
1678         kf40=\EO6S,
1679         kf41=\E[15;6~,
1680         kf42=\E[17;6~,
1681         kf43=\E[18;6~,
1682         kf44=\E[19;6~,
1683         kf45=\E[20;6~,
1684         kf46=\E[21;6~,
1685         kf47=\E[23;6~,
1686         kf48=\E[24;6~,
1687         kf5=\E[15~,
1688         kf6=\E[17~,
1689         kf7=\E[18~,
1690         kf8=\E[19~,
1691         kf9=\E[20~,
1692         khome=\EOH,
1693         kich1=\E[2~,
1694         kmous=\E[M,
1695         knp=\E[6~,
1696         kpp=\E[5~,
1697         mc0=\E[i,
1698         mc4=\E[4i,
1699         mc5=\E[5i,
1700         meml=\El,
1701         memu=\Em,
1702         op=\E[39;49m,
1703         rc=\E8,
1704         rev=\E[7m,
1705         ri=\EM,
1706         rin=\E[%p1%dT,
1707         rmacs=^O,
1708         rmam=\E[?7l,
1709         rmcup=\E[?1049l,
1710         rmir=\E[4l,
1711         rmkx=\E[?1l\E>,
1712         rmso=\E[27m,
1713         rmul=\E[24m,
1714         rs1=\Ec,
1715         rs2=\E[!p\E[?3;4l\E[4l\E>,
1716         sc=\E7,
1717         setab=\E[4%p1%dm,
1718         setaf=\E[3%p1%dm,
1719         setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
1720         setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
1721         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
1722         sgr0=\E[m\017,
1723         smacs=^N,
1724         smam=\E[?7h,
1725         smcup=\E[?1049h,
1726         smir=\E[4h,
1727         smkx=\E[?1h\E=,
1728         smso=\E[7m,
1729         smul=\E[4m,
1730         tbc=\E[3g,
1731         u6=\E[%i%d;%dR,
1732         u7=\E[6n,
1733         u8=\E[?1;2c,
1734         u9=\E[c,
1735         vpa=\E[%i%p1%dd,
1736         ka2=\EOx,
1737         kb1=\EOt,
1738         kb3=\EOv,
1739         kc2=\EOr,
1740 xterm-xfree86|xterm terminal emulator (XFree86 4.4 Window System),
1741         use=xterm-xf86-v44,
1742 #
1743 # Compatible with the R6 xterm, with the following changes:
1744 #       + added acsc (perhaps some versions of tic assume the standard vt100
1745 #         alternate character set)
1746 #       + added u6, u7, u8, u9 strings for Daniel Weaver's tack program.
1747 #       + added kmous string for ncurses.
1748 #       + added khome/kend strings (which conflict with kfnd/kslt, see note).
1749 xterm-r6|xterm-old|xterm X11R6 version,
1750         OTbs,
1751         am,
1752         km,
1753         mir,
1754         msgr,
1755         xenl,
1756         cols#80,
1757         it#8,
1758         lines#24,
1759         acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1760         bel=^G,
1761         bold=\E[1m,
1762         clear=\E[H\E[2J,
1763         cr=^M,
1764         csr=\E[%i%p1%d;%p2%dr,
1765         cub=\E[%p1%dD,
1766         cub1=^H,
1767         cud=\E[%p1%dB,
1768         cud1=^J,
1769         cuf=\E[%p1%dC,
1770         cuf1=\E[C,
1771         cup=\E[%i%p1%d;%p2%dH,
1772         cuu=\E[%p1%dA,
1773         cuu1=\E[A,
1774         dch=\E[%p1%dP,
1775         dch1=\E[P,
1776         dl=\E[%p1%dM,
1777         dl1=\E[M,
1778         ed=\E[J,
1779         el=\E[K,
1780         enacs=\E)0,
1781         home=\E[H,
1782         ht=^I,
1783         hts=\EH,
1784         il=\E[%p1%dL,
1785         il1=\E[L,
1786         ind=^J,
1787         is2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
1788         kbs=^H,
1789         kcub1=\EOD,
1790         kcud1=\EOB,
1791         kcuf1=\EOC,
1792         kcuu1=\EOA,
1793         kdch1=\E[3~,
1794         kf1=\E[11~,
1795         kf10=\E[21~,
1796         kf11=\E[23~,
1797         kf12=\E[24~,
1798         kf13=\E[25~,
1799         kf14=\E[26~,
1800         kf15=\E[28~,
1801         kf16=\E[29~,
1802         kf17=\E[31~,
1803         kf18=\E[32~,
1804         kf19=\E[33~,
1805         kf2=\E[12~,
1806         kf20=\E[34~,
1807         kf3=\E[13~,
1808         kf4=\E[14~,
1809         kf5=\E[15~,
1810         kf6=\E[17~,
1811         kf7=\E[18~,
1812         kf8=\E[19~,
1813         kf9=\E[20~,
1814         kmous=\E[M,
1815         meml=\El,
1816         memu=\Em,
1817         rc=\E8,
1818         rev=\E[7m,
1819         ri=\EM,
1820         rmacs=^O,
1821         rmcup=\E[2J\E[?47l\E8,
1822         rmir=\E[4l,
1823         rmkx=\E[?1l\E>,
1824         rmso=\E[m,
1825         rmul=\E[m,
1826         rs2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
1827         sc=\E7,
1828         sgr0=\E[m,
1829         smacs=^N,
1830         smcup=\E7\E[?47h,
1831         smir=\E[4h,
1832         smkx=\E[?1h\E=,
1833         smso=\E[7m,
1834         smul=\E[4m,
1835         tbc=\E[3g,
1836         u6=\E[%i%d;%dR,
1837         u7=\E[6n,
1838         u8=\E[?1;2c,
1839         u9=\E[c,
1840         use=xterm+decedit,
1841 #
1842 # Compatible with the R5 xterm, with the following changes:
1843 #       + changed 'blink=@', to 'blink@' (the former meant that "@" would start
1844 #         a blink, the latter that it is not supported).
1845 #       + changed kf1 through kf4 to correspond with actual usage.  Though X
1846 #         supports keypad symbols for PF1 to PF4, and xterm interprets these
1847 #         correctly, the F1 to F4 codes are commonly (but incorrectly) used.
1848 #       + moved reset string from rs1 to rs2, to correlate better with termcap.
1849 #       + make khome consistent with other entries.
1850 #       + use rmul/smul, rmir/smir from termcap, but not rmcup/smcup because
1851 #         not everyone wants the alternate screen.
1852 #       + added u6, u7, u8, u9 strings for Daniel Weaver's tack program.
1853 #       + added kmous string for ncurses.
1854 xterm-r5|xterm R5 version,
1855         OTbs,
1856         am,
1857         km,
1858         msgr,
1859         xenl,
1860         cols#80,
1861         it#8,
1862         lines#24,
1863         bel=^G,
1864         bold=\E[1m,
1865         clear=\E[H\E[2J,
1866         cr=^M,
1867         csr=\E[%i%p1%d;%p2%dr,
1868         cub=\E[%p1%dD,
1869         cub1=^H,
1870         cud=\E[%p1%dB,
1871         cud1=^J,
1872         cuf=\E[%p1%dC,
1873         cuf1=\E[C,
1874         cup=\E[%i%p1%d;%p2%dH,
1875         cuu=\E[%p1%dA,
1876         cuu1=\E[A,
1877         dch=\E[%p1%dP,
1878         dch1=\E[P,
1879         dl=\E[%p1%dM,
1880         dl1=\E[M,
1881         ed=\E[J,
1882         el=\E[K,
1883         home=\E[H,
1884         ht=^I,
1885         hts=\EH,
1886         ich=\E[%p1%d@,
1887         ich1=\E[@,
1888         il=\E[%p1%dL,
1889         il1=\E[L,
1890         ind=^J,
1891         kbs=^H,
1892         kcub1=\EOD,
1893         kcud1=\EOB,
1894         kcuf1=\EOC,
1895         kcuu1=\EOA,
1896         kdch1=\E[3~,
1897         kdl1=\E[31~,
1898         kel=\E[8~,
1899         kend=\E[4~,
1900         kf0=\EOq,
1901         kf1=\E[11~,
1902         kf10=\E[21~,
1903         kf11=\E[23~,
1904         kf12=\E[24~,
1905         kf2=\E[12~,
1906         kf3=\E[13~,
1907         kf4=\E[14~,
1908         kf5=\E[15~,
1909         kf6=\E[17~,
1910         kf7=\E[18~,
1911         kf8=\E[19~,
1912         kf9=\E[20~,
1913         khome=\E[1~,
1914         kich1=\E[2~,
1915         kil1=\E[30~,
1916         kmous=\E[M,
1917         knp=\E[6~,
1918         kpp=\E[5~,
1919         rc=\E8,
1920         rev=\E[7m,
1921         ri=\EM,
1922         rmir=\E[4l,
1923         rmkx=\E[?1l\E>,
1924         rmso=\E[m,
1925         rmul=\E[m,
1926         rs2=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H,
1927         sc=\E7,
1928         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
1929         sgr0=\E[m,
1930         smir=\E[4h,
1931         smkx=\E[?1h\E=,
1932         smso=\E[7m,
1933         smul=\E[4m,
1934         tbc=\E[3g,
1935         u6=\E[%i%d;%dR,
1936         u7=\E[6n,
1937         u8=\E[?1;2c,
1938         u9=\E[c,
1939 #
1940 #
1941 # Customization begins here.
1942 #
1943 # This is the only entry which you should have to customize, since "xterm"
1944 # is widely used for a variety of incompatible terminal emulations including
1945 # color_xterm and rxvt.
1946 xterm|X11 terminal emulator,
1947         use=xterm-debian,
1948 #       use=xterm-new,
1949 #       use=xterm-r6,