xterm.terminfo 42 KB

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