starlight-cli 1.0.13 → 1.0.15

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