source: npl/system/ncurses/xterm.terminfo @ a39aa4c

perl-5.22
Last change on this file since a39aa4c was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 41.0 KB
RevLine 
[c5c522c]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#
132xterm-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#
196xterm+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.
206xterm+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
262xterm+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
312xterm+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.
379xterm+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
444xterm+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
509xterm+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.
592xterm+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
620xterm+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
648xterm+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
676xterm+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.
705xterm+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
744xterm+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
783xterm+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
822xterm+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.
862xterm-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#
959# The xterm-new description has all of the features, but is not completely
960# compatible with vt220.  If you are using a Sun or PC keyboard, set the
961# sunKeyboard resource to true:
962#       + maps the editing keypad
963#       + interprets control-function-key as a second array of keys, so a
964#         12-fkey keyboard can support vt220's 20-fkeys.
965#       + maps numeric keypad "+" to ",".
966#       + uses DEC-style control sequences for the application keypad.
967#
968# Some packagers modify xterm's resource definitions to provide extra function
969# keys by using the shift-modifier in the translations resource.  However, that
970# interferes with the DECUDK functionality.
971#
972xterm-vt220|xterm emulating vt220,
973        ka1=\EOw,
974        ka3=\EOy,
975        kb2=\EOu,
976        kc1=\EOq,
977        kc3=\EOs,
978        kcbt=\E[Z,
979        kend=\E[4~,
980        kent=\EOM,
981        kf1=\EOP,
982        kf10=\E[21~,
983        kf11=\E[23~,
984        kf12=\E[24~,
985        kf13=\E[25~,
986        kf14=\E[26~,
987        kf15=\E[28~,
988        kf16=\E[29~,
989        kf17=\E[31~,
990        kf18=\E[32~,
991        kf19=\E[33~,
992        kf2=\EOQ,
993        kf20=\E[34~,
994        kf3=\EOR,
995        kf4=\EOS,
996        kf5=\E[15~,
997        kf6=\E[17~,
998        kf7=\E[18~,
999        kf8=\E[19~,
1000        kf9=\E[20~,
1001        khome=\E[1~,
1002        kich1=\E[2~,
1003        knp=\E[6~,
1004        kpp=\E[5~,
1005        ka2=\EOx,
1006        kb1=\EOt,
1007        kb3=\EOv,
1008        kc2=\EOr,
1009        use=xterm+app,
1010        use=xterm+edit,
1011        use=xterm-basic,
1012#
1013xterm-vt52|xterm emulating dec vt52,
1014        cols#80,
1015        it#8,
1016        lines#24,
1017        acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1018        bel=^G,
1019        clear=\EH\EJ,
1020        cr=^M,
1021        cub1=\ED,
1022        cud1=\EB,
1023        cuf1=\EC,
1024        cup=\EY%p1%' '%+%c%p2%' '%+%c,
1025        cuu1=\EA,
1026        ed=\EJ,
1027        el=\EK,
1028        home=\EH,
1029        ht=^I,
1030        ind=^J,
1031        kbs=^H,
1032        kcub1=\ED,
1033        kcud1=\EB,
1034        kcuf1=\EC,
1035        kcuu1=\EA,
1036        nel=^M^J,
1037        ri=\EI,
1038        rmacs=\EG,
1039        smacs=\EF,
1040#
1041# Sun does not number the function keys this way in their sparse termcap; their
1042# terminal descriptions ignore the keypads.  kb(7M) states that there are codes
1043# reserved for 64 function keys, 16 each in left, right, top and bottom.  Each
1044# keyboard type has a different number of function keys in different
1045# arrangements.  Using xkeycaps for reference:
1046#
1047# Type 3:  left 10, top 9, right 15
1048# ------
1049# kf1-kf9 are XK_F1-XK_F9
1050# There is no kf10 on this keyboard type.
1051# kf11-kf20 are keysyms XK_L1 through XK_L10.
1052# kf31-kf45 are keysyms XK_R1 through XK_R15.
1053#
1054# However, X's keysymdef.h is hard-coded to make
1055#       XK_L1==XK_F11 and
1056#       XK_R1==XK_F21,
1057# by someone who was unfamiliar with terminal types other than Sun's.  So
1058# xterm uses the internal X keysymbols, but the terminfo entry uses the Sun
1059# numbering scheme.
1060#
1061# Type 4:  left 11, top 12, right 15
1062# ------
1063# The left-keypad contains an unnumbered Help-key.
1064# The right-keypad also contains NumLock, Ins, Del, Enter, + and - keys which
1065# do not appear to be part of the R-sequence.
1066#
1067# Type 5:  left 9, top 12, right (more than one keypad)
1068# ------
1069# These keyboards do not use the same naming convention, look like a hybrid of
1070# the type 4 and IBM keyboards.
1071#
1072# XTerm resources:
1073# ---------------
1074# Set the modifyFunctionKeys resource to negative (-1) to make it simple to
1075# enter the higher function-key values using shift- and control-modifiers.
1076#
1077xterm-sun|xterm with sun function keys,
1078        kb2=\E[218z,
1079        kcpy=\E[197z,
1080        kcub1=\EOD,
1081        kcud1=\EOB,
1082        kcuf1=\EOC,
1083        kcuu1=\EOA,
1084        kdch1=\E[3z,
1085        kend=\E[220z,
1086        kent=\EOM,
1087        kf1=\E[224z,
1088        kf10=\E[233z,
1089        kf11=\E[192z,
1090        kf12=\E[193z,
1091        kf13=\E[194z,
1092        kf14=\E[195z,
1093        kf15=\E[196z,
1094        kf17=\E[198z,
1095        kf18=\E[199z,
1096        kf19=\E[200z,
1097        kf2=\E[225z,
1098        kf20=\E[201z,
1099        kf3=\E[226z,
1100        kf31=\E[208z,
1101        kf32=\E[209z,
1102        kf33=\E[210z,
1103        kf34=\E[211z,
1104        kf35=\E[212z,
1105        kf36=\E[213z,
1106        kf38=\E[215z,
1107        kf4=\E[227z,
1108        kf40=\E[217z,
1109        kf42=\E[219z,
1110        kf44=\E[221z,
1111        kf45=\E[222z,
1112        kf46=\E[234z,
1113        kf47=\E[235z,
1114        kf5=\E[228z,
1115        kf6=\E[229z,
1116        kf7=\E[230z,
1117        kf8=\E[231z,
1118        kf9=\E[232z,
1119        kfnd=\E[200z,
1120        khlp=\E[196z,
1121        khome=\E[214z,
1122        kich1=\E[2z,
1123        knp=\E[222z,
1124        kpp=\E[216z,
1125        kund=\E[195z,
1126        use=xterm-basic,
1127#
1128xterm-hp|xterm with hpterm function keys,
1129        kclr=\EJ,
1130        kcub1=\ED,
1131        kcud1=\EB,
1132        kcuf1=\EC,
1133        kcuu1=\EA,
1134        kdch1=\EP,
1135        kend=\EF,
1136        kf1=\Ep,
1137        kf2=\Eq,
1138        kf3=\Er,
1139        kf4=\Es,
1140        kf5=\Et,
1141        kf6=\Eu,
1142        kf7=\Ev,
1143        kf8=\Ew,
1144        khome=\Eh,
1145        kich1=\EQ,
1146        knp=\ES,
1147        kpp=\ET,
1148        use=xterm-basic,
1149#
1150# scoterm implements 48 function-keys using shift- and control-modifiers to
1151# multiple 12 function-keys.  X has a hard-coded limit of 35 function-keys,
1152# but xterm can represent larger values.
1153#
1154# XTerm resources:
1155# ---------------
1156# Set the modifyFunctionKeys resource to negative (-1) to make it simple to
1157# enter the higher function-key values using shift- and control-modifiers.
1158#
1159# Also, set ctrlFKeys resource to 12 (the default is 10) to make xterm see 48
1160# function-keys on a keyboard with 12 function-keys and 4 control/shift
1161# modifier combinations.
1162#
1163xterm-sco|xterm with SCO function keys,
1164        kbeg=\E[E,
1165        kdch1=\177,
1166        kf1=\E[M,
1167        kf10=\E[V,
1168        kf11=\E[W,
1169        kf12=\E[X,
1170        kf13=\E[Y,
1171        kf14=\E[Z,
1172        kf15=\E[a,
1173        kf16=\E[b,
1174        kf17=\E[c,
1175        kf18=\E[d,
1176        kf19=\E[e,
1177        kf2=\E[N,
1178        kf20=\E[f,
1179        kf21=\E[g,
1180        kf22=\E[h,
1181        kf23=\E[i,
1182        kf24=\E[j,
1183        kf25=\E[k,
1184        kf26=\E[l,
1185        kf27=\E[m,
1186        kf28=\E[n,
1187        kf29=\E[o,
1188        kf3=\E[O,
1189        kf30=\E[p,
1190        kf31=\E[q,
1191        kf32=\E[r,
1192        kf33=\E[s,
1193        kf34=\E[t,
1194        kf35=\E[u,
1195        kf36=\E[v,
1196        kf37=\E[w,
1197        kf38=\E[x,
1198        kf39=\E[y,
1199        kf4=\E[P,
1200        kf40=\E[z,
1201        kf41=\E[@,
1202        kf42=\E[[,
1203        kf43=\E[\\,
1204        kf44=\E[],
1205        kf45=\E[\^,
1206        kf46=\E[_,
1207        kf47=\E[`,
1208        kf48=\E[{,
1209        kf5=\E[Q,
1210        kf6=\E[R,
1211        kf7=\E[S,
1212        kf8=\E[T,
1213        kf9=\E[U,
1214        kich1=\E[L,
1215        kmous=\E[>M,
1216        knp=\E[G,
1217        kpp=\E[I,
1218        use=xterm+noapp,
1219        use=xterm-basic,
1220#
1221# Other variants (these are all very old entries, from X11R5):
1222xterm-24|xterms|vs100|xterm terminal emulator (X Window System),
1223        lines#24,
1224        use=xterm-old,
1225xterm-65|xterm with tall window 65x80 (X Window System),
1226        lines#65,
1227        use=xterm-old,
1228xterm-bold|xterm with bold instead of underline (X Window System),
1229        smso=\E[7m,
1230        smul=\E[1m,
1231        use=xterm-old,
1232xterm-boldso|xterm with bold for standout (X Window System),
1233        rmso=\E[m,
1234        smso=\E[1m,
1235        use=xterm-old,
1236xterm-mono|monochrome xterm,
1237        bce@,
1238        colors@,
1239        ncv@,
1240        pairs@,
1241        op@,
1242        setab@,
1243        setaf@,
1244        setb@,
1245        setf@,
1246        sgr@,
1247        use=xterm-old,
1248#
1249# VTxxx terminals are usually set up so that full-screen applications will use
1250# the cursor application mode strings.  This is good for full-screen
1251# applications, including legacy applications which may have hard-coded
1252# behavior, but bad for interactive shells (e.g., tcsh, bash) which use arrow
1253# keys to scroll through a history of command strings.
1254#
1255# To see the difference between normal/application modes, consider this example:
1256#       + In normal (non-application) mode, the terminal transmits a down-arrow
1257#         as \E[C, which happens to echo as a down-arrow.
1258#       + In application mode the terminal transmits \EOC, which echoes as C.
1259#         That is because the \EO is the SS3 control, which says to use the
1260#         character from the G3 character set for the next cell.
1261#
1262# One example of hard-coded behavior would be for applications written to work
1263# with VT52 and VT100 terminals.  If the application's parser ignores 'O' and
1264# '?' characters after the escape, then the cursor and keypad strings for the
1265# two terminals are the same.  (Indeed, one of the first curses applications
1266# which I used did something like this to cover "ANSI" terminals -TD).
1267#
1268# To make this work (leaving the cursor keys in normal mode), we have to adjust
1269# the terminal initialization sequences:
1270#
1271#       smkx/rmkx set/reset the cursor and keypad application modes.  We retain
1272#               the latter (otherwise many applications fail).
1273#
1274#       smcup/rmcup set/restore cursor-addressing mode for full-screen
1275#               applications.  For xterm, this normally means the alternate
1276#               screen, which is not compatible with interactive shells.  Some
1277#               programs are "smart" and disable these.
1278#
1279xterm-noapp|xterm with cursor keys in normal mode,
1280        rmcup@,
1281        rmkx=\E>,
1282        smcup@,
1283        smkx=\E=,
1284        use=xterm+noapp,
1285        use=xterm,
1286
1287xterm+noapp|fragment with cursor keys in normal mode,
1288        kcub1=\E[D,
1289        kcud1=\E[B,
1290        kcuf1=\E[C,
1291        kcuu1=\E[A,
1292        use=xterm+noapp+pc,
1293
1294xterm+app|fragment with cursor keys in application mode,
1295        kcub1=\EOD,
1296        kcud1=\EOB,
1297        kcuf1=\EOC,
1298        kcuu1=\EOA,
1299        use=xterm+app+pc,
1300
1301xterm+noapp+pc|fragment for noapp pc-style home/end,
1302        kend=\E[F,
1303        khome=\E[H,
1304
1305xterm+app+pc|fragment for app pc-style home/end,
1306        kend=\EOF,
1307        khome=\EOH,
1308
1309xterm+edit|fragment for 6-key editing-keypad,
1310        kdch1=\E[3~,
1311        kich1=\E[2~,
1312        knp=\E[6~,
1313        kpp=\E[5~,
1314        use=xterm+pc+edit,
1315
1316xterm+decedit|fragment for vt220 6-key editing-keypad,
1317        kdch1=\E[3~,
1318        kich1=\E[2~,
1319        knp=\E[6~,
1320        kpp=\E[5~,
1321        use=xterm+vt+edit,
1322
1323xterm+pc+edit|fragment for pc-style editing keypad,
1324        kend=\E[4~,
1325        khome=\E[1~,
1326
1327xterm+vt+edit|fragment for vt220-style editing keypad,
1328        kfnd=\E[1~,
1329        kslt=\E[4~,
1330
1331#
1332# This should work for the commonly used "color xterm" variations (XFree86
1333# xterm, color_xterm, nxterm, rxvt).  Note that it does not set 'bce', so for
1334# XFree86 and and rxvt, some applications that use colors will be less
1335# efficient, and in a few special cases (with "smart" optimization) the wrong
1336# color will be painted in spots.
1337xterm-color|generic "ANSI" color xterm (X Window System),
1338        colors#8,
1339        ncv@,
1340        pairs#64,
1341        op=\E[m,
1342        setab=\E[4%p1%dm,
1343        setaf=\E[3%p1%dm,
1344        use=xterm-r6,
1345#
1346# vi may work better with this entry, because vi
1347# doesn't use insert mode much
1348xterm-ic|xterm-vi|xterm with insert character instead of insert mode,
1349        mir@,
1350        ich=\E[%p1%d@,
1351        ich1=\E[@,
1352        rmir@,
1353        smir@,
1354        use=xterm,
1355#
1356# This is used only for testing (it's not relevant to DEC VTxxx terminals, but
1357# to ncurses).
1358xterm-xmc|xterm with magic-cookie glitch,
1359        xmc#1,
1360        use=xterm-new,
1361#
1362# This one also is primarily for testing ncurses; while the ISO 6429 defines
1363# the REP control, none of the DEC VTxxx terminals (VT52 through VT420) support
1364# it.
1365xterm-rep|xterm with repeat-character control,
1366        rep=%p1%c\E[%p2%{1}%-%db,
1367        use=xterm-new,
1368#
1369# This is mainly for testing xterm; the real VT220 will not let you switch
1370# character sets without first altering the keyboard language in the setup
1371# screen.  Some emulators allow this anyway.  (Note that these strings are
1372# normally used only for printers).  The parameter to csnm and scs is the same
1373# in both cases:  the keyboard language parameter returned by CSI ? 2 6 n.
1374xterm-nrc|xterm with VT220 national replacement character sets,
1375        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%;,
1376        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%;,
1377        use=xterm-new,
1378#
1379# Foreground 0-15 maps (with toggles) into 30-37 & 90-97
1380# Background 0-15 maps (with toggles) into 40-47 & 100-107
1381#
1382# Originally I suppressed setaf/setab, since ANSI specifies only 8 colors, but
1383# Stephen Marley persuaded me to allow the "ANSI" color controls to extend to
1384# 16 colors.  (Note that ncurses 4.2 uses setf/setb from this description;
1385# however 5.0 selects either according to their availability).  - T.Dickey
1386#
1387# SVr4 curses does not use more than 8 colors anyway, so using 16 colors is
1388# either for terminfo-level applications or via ncurses.
1389xterm-16color|xterm with 16 colors,
1390        colors#16,
1391        pairs#256,
1392        setab=\E[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm,
1393        setaf=\E[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm,
1394        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,
1395        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,
1396        use=xterm-new,
1397#
1398# This uses RGB values 0..1000
1399#
1400# 256 colors should give 65536 pairs, but terminfo stores numbers in a signed
1401# short.  Most people will not notice problems with only 32767 pairs.
1402xterm-256color|xterm with 256 colors,
1403        ccc,
1404        colors#256,
1405        pairs#32767,
1406        initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
1407        setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
1408        setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
1409        setb@,
1410        setf@,
1411        use=xterm-new,
1412xterm-88color|xterm with 88 colors,
1413        colors#88,
1414        pairs#7744,
1415        use=xterm-256color,
1416#
1417# This is an 8-bit version of xterm, which emulates DEC vt220 with ANSI color.
1418# To use it, your decTerminalID resource must be set to 200 or above, and the
1419# sunKeyboard resource set to true.
1420#
1421#       HTS     \E H    \210
1422#       RI      \E M    \215
1423#       SS3     \E O    \217
1424#       CSI     \E [    \233
1425#
1426xterm-8bit|xterm terminal emulator with 8-bit controls (X Window System),
1427        OTbs,
1428        am,
1429        bce,
1430        km,
1431        mc5i,
1432        mir,
1433        msgr,
1434        npc,
1435        xenl,
1436        AX,
1437        colors#8,
1438        cols#80,
1439        it#8,
1440        lines#24,
1441        pairs#64,
1442        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1443        bel=^G,
1444        blink=\2335m,
1445        bold=\2331m,
1446        cbt=\233Z,
1447        civis=\233?25l,
1448        clear=\233H\2332J,
1449        cnorm=\233?25l\233?25h,
1450        cr=^M,
1451        csr=\233%i%p1%d;%p2%dr,
1452        cub=\233%p1%dD,
1453        cub1=^H,
1454        cud=\233%p1%dB,
1455        cud1=^J,
1456        cuf=\233%p1%dC,
1457        cuf1=\233C,
1458        cup=\233%i%p1%d;%p2%dH,
1459        cuu=\233%p1%dA,
1460        cuu1=\233A,
1461        cvvis=\233?12;25h,
1462        dch=\233%p1%dP,
1463        dch1=\233P,
1464        dl=\233%p1%dM,
1465        dl1=\233M,
1466        ech=\233%p1%dX,
1467        ed=\233J,
1468        el=\233K,
1469        el1=\2331K,
1470        flash=\233?5h$<100/>\233?5l,
1471        home=\233H,
1472        hpa=\233%i%p1%dG,
1473        ht=^I,
1474        hts=\210,
1475        ich=\233%p1%d@,
1476        il=\233%p1%dL,
1477        il1=\233L,
1478        ind=^J,
1479        invis=\2338m,
1480        is2=\E[62"p\E G\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r\E8,
1481        ka1=\217w,
1482        ka3=\217u,
1483        kb2=\217y,
1484        kbeg=\217E,
1485        kbs=^H,
1486        kc1=\217q,
1487        kc3=\217s,
1488        kcbt=\233Z,
1489        kcub1=\217D,
1490        kcud1=\217B,
1491        kcuf1=\217C,
1492        kcuu1=\217A,
1493        kdch1=\2333~,
1494        kend=\2334~,
1495        kent=\217M,
1496        kf1=\23311~,
1497        kf10=\23321~,
1498        kf11=\23323~,
1499        kf12=\23324~,
1500        kf13=\23325~,
1501        kf14=\23326~,
1502        kf15=\23328~,
1503        kf16=\23329~,
1504        kf17=\23331~,
1505        kf18=\23332~,
1506        kf19=\23333~,
1507        kf2=\23312~,
1508        kf20=\23334~,
1509        kf3=\23313~,
1510        kf4=\23314~,
1511        kf5=\23315~,
1512        kf6=\23317~,
1513        kf7=\23318~,
1514        kf8=\23319~,
1515        kf9=\23320~,
1516        khome=\2331~,
1517        kich1=\2332~,
1518        kmous=\233M,
1519        knp=\2336~,
1520        kpp=\2335~,
1521        mc0=\233i,
1522        mc4=\2334i,
1523        mc5=\2335i,
1524        meml=\El,
1525        memu=\Em,
1526        op=\23339;49m,
1527        rc=\E8,
1528        rev=\2337m,
1529        ri=\215,
1530        rmacs=\E(B,
1531        rmam=\233?7l,
1532        rmcup=\233?1049l,
1533        rmir=\2334l,
1534        rmkx=\233?1l\E>,
1535        rmso=\23327m,
1536        rmul=\23324m,
1537        rs1=\Ec,
1538        rs2=\E[62"p\E G\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r\E8,
1539        sc=\E7,
1540        setab=\2334%p1%dm,
1541        setaf=\2333%p1%dm,
1542        setb=\2334%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
1543        setf=\2333%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
1544        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%;,
1545        sgr0=\2330m\E(B,
1546        smacs=\E(0,
1547        smam=\233?7h,
1548        smcup=\233?1049h,
1549        smir=\2334h,
1550        smkx=\233?1h\E=,
1551        smso=\2337m,
1552        smul=\2334m,
1553        tbc=\2333g,
1554        u6=\233[%i%d;%dR,
1555        u7=\E[6n,
1556        u8=\233[?1;2c,
1557        u9=\E[c,
1558        vpa=\233%i%p1%dd,
1559#
1560xterm-xf86-v44|xterm terminal emulator (XFree86 4.4 Window System),
1561        OTbs,
1562        am,
1563        bce,
1564        km,
1565        mc5i,
1566        mir,
1567        msgr,
1568        npc,
1569        xenl,
1570        AX,
1571        colors#8,
1572        cols#80,
1573        it#8,
1574        lines#24,
1575        pairs#64,
1576        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1577        bel=^G,
1578        blink=\E[5m,
1579        bold=\E[1m,
1580        cbt=\E[Z,
1581        civis=\E[?25l,
1582        clear=\E[H\E[2J,
1583        cnorm=\E[?12l\E[?25h,
1584        cr=^M,
1585        csr=\E[%i%p1%d;%p2%dr,
1586        cub=\E[%p1%dD,
1587        cub1=^H,
1588        cud=\E[%p1%dB,
1589        cud1=^J,
1590        cuf=\E[%p1%dC,
1591        cuf1=\E[C,
1592        cup=\E[%i%p1%d;%p2%dH,
1593        cuu=\E[%p1%dA,
1594        cuu1=\E[A,
1595        cvvis=\E[?12;25h,
1596        dch=\E[%p1%dP,
1597        dch1=\E[P,
1598        dl=\E[%p1%dM,
1599        dl1=\E[M,
1600        ech=\E[%p1%dX,
1601        ed=\E[J,
1602        el=\E[K,
1603        el1=\E[1K,
1604        enacs=\E(B\E)0,
1605        flash=\E[?5h$<100/>\E[?5l,
1606        home=\E[H,
1607        hpa=\E[%i%p1%dG,
1608        ht=^I,
1609        hts=\EH,
1610        ich=\E[%p1%d@,
1611        il=\E[%p1%dL,
1612        il1=\E[L,
1613        ind=^J,
1614        indn=\E[%p1%dS,
1615        invis=\E[8m,
1616        is2=\E[!p\E[?3;4l\E[4l\E>,
1617        kDC=\E[3;2~,
1618        kEND=\E[1;2F,
1619        kHOM=\E[1;2H,
1620        kIC=\E[2;2~,
1621        kLFT=\E[1;2D,
1622        kNXT=\E[6;2~,
1623        kPRV=\E[5;2~,
1624        kRIT=\E[1;2C,
1625        kb2=\EOE,
1626        kbs=^H,
1627        kcbt=\E[Z,
1628        kcub1=\EOD,
1629        kcud1=\EOB,
1630        kcuf1=\EOC,
1631        kcuu1=\EOA,
1632        kdch1=\E[3~,
1633        kend=\EOF,
1634        kent=\EOM,
1635        kf1=\EOP,
1636        kf10=\E[21~,
1637        kf11=\E[23~,
1638        kf12=\E[24~,
1639        kf13=\EO2P,
1640        kf14=\EO2Q,
1641        kf15=\EO2R,
1642        kf16=\EO2S,
1643        kf17=\E[15;2~,
1644        kf18=\E[17;2~,
1645        kf19=\E[18;2~,
1646        kf2=\EOQ,
1647        kf20=\E[19;2~,
1648        kf21=\E[20;2~,
1649        kf22=\E[21;2~,
1650        kf23=\E[23;2~,
1651        kf24=\E[24;2~,
1652        kf25=\EO5P,
1653        kf26=\EO5Q,
1654        kf27=\EO5R,
1655        kf28=\EO5S,
1656        kf29=\E[15;5~,
1657        kf3=\EOR,
1658        kf30=\E[17;5~,
1659        kf31=\E[18;5~,
1660        kf32=\E[19;5~,
1661        kf33=\E[20;5~,
1662        kf34=\E[21;5~,
1663        kf35=\E[23;5~,
1664        kf36=\E[24;5~,
1665        kf37=\EO6P,
1666        kf38=\EO6Q,
1667        kf39=\EO6R,
1668        kf4=\EOS,
1669        kf40=\EO6S,
1670        kf41=\E[15;6~,
1671        kf42=\E[17;6~,
1672        kf43=\E[18;6~,
1673        kf44=\E[19;6~,
1674        kf45=\E[20;6~,
1675        kf46=\E[21;6~,
1676        kf47=\E[23;6~,
1677        kf48=\E[24;6~,
1678        kf5=\E[15~,
1679        kf6=\E[17~,
1680        kf7=\E[18~,
1681        kf8=\E[19~,
1682        kf9=\E[20~,
1683        khome=\EOH,
1684        kich1=\E[2~,
1685        kmous=\E[M,
1686        knp=\E[6~,
1687        kpp=\E[5~,
1688        mc0=\E[i,
1689        mc4=\E[4i,
1690        mc5=\E[5i,
1691        meml=\El,
1692        memu=\Em,
1693        op=\E[39;49m,
1694        rc=\E8,
1695        rev=\E[7m,
1696        ri=\EM,
1697        rin=\E[%p1%dT,
1698        rmacs=^O,
1699        rmam=\E[?7l,
1700        rmcup=\E[?1049l,
1701        rmir=\E[4l,
1702        rmkx=\E[?1l\E>,
1703        rmso=\E[27m,
1704        rmul=\E[24m,
1705        rs1=\Ec,
1706        rs2=\E[!p\E[?3;4l\E[4l\E>,
1707        sc=\E7,
1708        setab=\E[4%p1%dm,
1709        setaf=\E[3%p1%dm,
1710        setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
1711        setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
1712        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%;,
1713        sgr0=\E[m\017,
1714        smacs=^N,
1715        smam=\E[?7h,
1716        smcup=\E[?1049h,
1717        smir=\E[4h,
1718        smkx=\E[?1h\E=,
1719        smso=\E[7m,
1720        smul=\E[4m,
1721        tbc=\E[3g,
1722        u6=\E[%i%d;%dR,
1723        u7=\E[6n,
1724        u8=\E[?1;2c,
1725        u9=\E[c,
1726        vpa=\E[%i%p1%dd,
1727        ka2=\EOx,
1728        kb1=\EOt,
1729        kb3=\EOv,
1730        kc2=\EOr,
1731xterm-xfree86|xterm terminal emulator (XFree86 4.4 Window System),
1732        use=xterm-xf86-v44,
1733#
1734# Compatible with the R6 xterm, with the following changes:
1735#       + added acsc (perhaps some versions of tic assume the standard vt100
1736#         alternate character set)
1737#       + added u6, u7, u8, u9 strings for Daniel Weaver's tack program.
1738#       + added kmous string for ncurses.
1739#       + added khome/kend strings (which conflict with kfnd/kslt, see note).
1740xterm-r6|xterm-old|xterm X11R6 version,
1741        OTbs,
1742        am,
1743        km,
1744        mir,
1745        msgr,
1746        xenl,
1747        cols#80,
1748        it#8,
1749        lines#24,
1750        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1751        bel=^G,
1752        bold=\E[1m,
1753        clear=\E[H\E[2J,
1754        cr=^M,
1755        csr=\E[%i%p1%d;%p2%dr,
1756        cub=\E[%p1%dD,
1757        cub1=^H,
1758        cud=\E[%p1%dB,
1759        cud1=^J,
1760        cuf=\E[%p1%dC,
1761        cuf1=\E[C,
1762        cup=\E[%i%p1%d;%p2%dH,
1763        cuu=\E[%p1%dA,
1764        cuu1=\E[A,
1765        dch=\E[%p1%dP,
1766        dch1=\E[P,
1767        dl=\E[%p1%dM,
1768        dl1=\E[M,
1769        ed=\E[J,
1770        el=\E[K,
1771        enacs=\E)0,
1772        home=\E[H,
1773        ht=^I,
1774        hts=\EH,
1775        il=\E[%p1%dL,
1776        il1=\E[L,
1777        ind=^J,
1778        is2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
1779        kbs=^H,
1780        kcub1=\EOD,
1781        kcud1=\EOB,
1782        kcuf1=\EOC,
1783        kcuu1=\EOA,
1784        kdch1=\E[3~,
1785        kf1=\E[11~,
1786        kf10=\E[21~,
1787        kf11=\E[23~,
1788        kf12=\E[24~,
1789        kf13=\E[25~,
1790        kf14=\E[26~,
1791        kf15=\E[28~,
1792        kf16=\E[29~,
1793        kf17=\E[31~,
1794        kf18=\E[32~,
1795        kf19=\E[33~,
1796        kf2=\E[12~,
1797        kf20=\E[34~,
1798        kf3=\E[13~,
1799        kf4=\E[14~,
1800        kf5=\E[15~,
1801        kf6=\E[17~,
1802        kf7=\E[18~,
1803        kf8=\E[19~,
1804        kf9=\E[20~,
1805        kmous=\E[M,
1806        meml=\El,
1807        memu=\Em,
1808        rc=\E8,
1809        rev=\E[7m,
1810        ri=\EM,
1811        rmacs=^O,
1812        rmcup=\E[2J\E[?47l\E8,
1813        rmir=\E[4l,
1814        rmkx=\E[?1l\E>,
1815        rmso=\E[m,
1816        rmul=\E[m,
1817        rs2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
1818        sc=\E7,
1819        sgr0=\E[m,
1820        smacs=^N,
1821        smcup=\E7\E[?47h,
1822        smir=\E[4h,
1823        smkx=\E[?1h\E=,
1824        smso=\E[7m,
1825        smul=\E[4m,
1826        tbc=\E[3g,
1827        u6=\E[%i%d;%dR,
1828        u7=\E[6n,
1829        u8=\E[?1;2c,
1830        u9=\E[c,
1831        use=xterm+decedit,
1832#
1833# Compatible with the R5 xterm, with the following changes:
1834#       + changed 'blink=@', to 'blink@' (the former meant that "@" would start
1835#         a blink, the latter that it is not supported).
1836#       + changed kf1 through kf4 to correspond with actual usage.  Though X
1837#         supports keypad symbols for PF1 to PF4, and xterm interprets these
1838#         correctly, the F1 to F4 codes are commonly (but incorrectly) used.
1839#       + moved reset string from rs1 to rs2, to correlate better with termcap.
1840#       + make khome consistent with other entries.
1841#       + use rmul/smul, rmir/smir from termcap, but not rmcup/smcup because
1842#         not everyone wants the alternate screen.
1843#       + added u6, u7, u8, u9 strings for Daniel Weaver's tack program.
1844#       + added kmous string for ncurses.
1845xterm-r5|xterm R5 version,
1846        OTbs,
1847        am,
1848        km,
1849        msgr,
1850        xenl,
1851        cols#80,
1852        it#8,
1853        lines#24,
1854        bel=^G,
1855        bold=\E[1m,
1856        clear=\E[H\E[2J,
1857        cr=^M,
1858        csr=\E[%i%p1%d;%p2%dr,
1859        cub=\E[%p1%dD,
1860        cub1=^H,
1861        cud=\E[%p1%dB,
1862        cud1=^J,
1863        cuf=\E[%p1%dC,
1864        cuf1=\E[C,
1865        cup=\E[%i%p1%d;%p2%dH,
1866        cuu=\E[%p1%dA,
1867        cuu1=\E[A,
1868        dch=\E[%p1%dP,
1869        dch1=\E[P,
1870        dl=\E[%p1%dM,
1871        dl1=\E[M,
1872        ed=\E[J,
1873        el=\E[K,
1874        home=\E[H,
1875        ht=^I,
1876        hts=\EH,
1877        ich=\E[%p1%d@,
1878        ich1=\E[@,
1879        il=\E[%p1%dL,
1880        il1=\E[L,
1881        ind=^J,
1882        kbs=^H,
1883        kcub1=\EOD,
1884        kcud1=\EOB,
1885        kcuf1=\EOC,
1886        kcuu1=\EOA,
1887        kdch1=\E[3~,
1888        kdl1=\E[31~,
1889        kel=\E[8~,
1890        kend=\E[4~,
1891        kf0=\EOq,
1892        kf1=\E[11~,
1893        kf10=\E[21~,
1894        kf11=\E[23~,
1895        kf12=\E[24~,
1896        kf2=\E[12~,
1897        kf3=\E[13~,
1898        kf4=\E[14~,
1899        kf5=\E[15~,
1900        kf6=\E[17~,
1901        kf7=\E[18~,
1902        kf8=\E[19~,
1903        kf9=\E[20~,
1904        khome=\E[1~,
1905        kich1=\E[2~,
1906        kil1=\E[30~,
1907        kmous=\E[M,
1908        knp=\E[6~,
1909        kpp=\E[5~,
1910        rc=\E8,
1911        rev=\E[7m,
1912        ri=\EM,
1913        rmir=\E[4l,
1914        rmkx=\E[?1l\E>,
1915        rmso=\E[m,
1916        rmul=\E[m,
1917        rs2=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H,
1918        sc=\E7,
1919        sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
1920        sgr0=\E[m,
1921        smir=\E[4h,
1922        smkx=\E[?1h\E=,
1923        smso=\E[7m,
1924        smul=\E[4m,
1925        tbc=\E[3g,
1926        u6=\E[%i%d;%dR,
1927        u7=\E[6n,
1928        u8=\E[?1;2c,
1929        u9=\E[c,
1930#
1931#
1932# Customization begins here.
1933#
1934# This is the only entry which you should have to customize, since "xterm"
1935# is widely used for a variety of incompatible terminal emulations including
1936# color_xterm and rxvt.
1937xterm|X11 terminal emulator,
1938        use=xterm-new,
1939#       use=xterm-r6,
Note: See TracBrowser for help on using the repository browser.