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