xterm.ti 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967
  1. # $XConsortium: terminfo,v 1.11 94/10/13 21:24:31 gildea Exp $
  2. # $XFree86: xc/programs/xterm/terminfo,v 3.41 2000/09/22 10:42:08 alanh Exp $
  3. #
  4. # XFree86 updates/notes/new entries (including xterm-8bit, xterm-16color)
  5. # - Thomas E. Dickey
  6. #
  7. # Special Capabilities:
  8. # --------------------
  9. # ich has a corresponding capability that inserts a single blank. We could
  10. # have used ich1=\E[@, which works with ncurses, but that is not standard
  11. # behavior. If it is set, then SVr4 vi (e.g., Solaris 2.6) emits both
  12. # smir/rmir and ich1.
  13. # meml locks memory above the cursor; memu unlocks (ala HP terminals). This
  14. # is not recognized by some older (e.g., SVr3) tic programs, but none
  15. # do more than warn about it. Ignore the warning.
  16. # smcup clears memory before switching to the alternate screen. The older
  17. # (deprecated) \E[?47h did not do this, requiring applications to
  18. # embed a \E[2J in the rmcup string. However, that behavior cannot
  19. # be disabled via titeInhibit, making that resource not function as
  20. # intended on systems with terminfo.
  21. # rs2/is2 are shorter with XFree86 xterm because it supports DECSTR. We
  22. # use the shorter sequence for compatibility with the termcap, which
  23. # is trimmed to keep it shorter than 1023 characters. It (escape \E[!p)
  24. # replaces these in the conventional vt100 reset-string:
  25. # \E7 - save cursor (fixes origin-mode side-effect)
  26. # \E[r - reset scrolling margins
  27. # \E[m - reset SGR (including color)
  28. # \E[?7h - reset wraparound mode (DECAWM)
  29. # \E[?1l - reset application cursor keys (DECCKM)
  30. # \E[?6l - reset origin mode (DECOM)
  31. # \E8 - restore cursor
  32. # DECSTR is recognized by XFree86 xterm even in vt52 mode.
  33. #
  34. # Editing Keypad:
  35. # --------------
  36. # XFree86 xterm emulates vt220 if the decTerminalID resource is set to 200 or
  37. # higher. Otherwise it emulates a vt100 or vt52 depending on the value of the
  38. # resource. When emulating a vt220, we support the editing keypad. Sun and PC
  39. # keyboards have an editing keypad which is similar to the vt220:
  40. #
  41. # VT220 editing keypad
  42. # ----------------------------
  43. # Find Insert Remove
  44. # Select Prev Next
  45. # ----------------------------
  46. #
  47. # Sun/PC editing keypad
  48. # ----------------------------
  49. # Insert Home PageUp
  50. # Delete End PageDn
  51. # ----------------------------
  52. #
  53. # If the sunKeyboard resource is true, we map it this way (adjusting the values
  54. # of Home, End and Delete):
  55. # VT220 Sun/PC
  56. # ----------------------------
  57. # Find Home
  58. # Select End
  59. # Insert Insert
  60. # Remove Delete
  61. # Prev PageUp
  62. # Next PageDn
  63. # ----------------------------
  64. #
  65. # Note that all of the keys on the editing keypad transmit escape sequences. A
  66. # vt220 does this only when in vt220 mode; when emulating a vt100 the editing
  67. # keypad is inactive.
  68. #
  69. # Alternative keycodes:
  70. # --------------------
  71. # Several of the function keys have alternative names, depending on the type of
  72. # host which your xterm is connected to. DEC (i.e., the VMS system) uses F15
  73. # as the HELP key, F16 as the DO key. Unix applications generally do not do
  74. # this. Curses applications in particular, assign a unique keycode to each
  75. # capability string. These terminal descriptions do not have conflicting
  76. # definitions, to ensure that Unix curses applications use a consistent set of
  77. # keycodes. To get a VMS-bias, make these substitutions:
  78. # 1. change khome to kfnd
  79. # 2. change kend to kslt
  80. # The original xterm-r6 entry does in fact have a VMS bias.
  81. #
  82. # Some legacy applications using the termcap emulation may expect kll where
  83. # we have specified kend.
  84. #
  85. # Function keys with modifiers (Sun/PC):
  86. # -------------------------------------
  87. # Shift-Fx - kf{12+x}
  88. # Control-Fx - kf{24+x}
  89. # Shift-Control-Fx - kf{36+x}
  90. #
  91. # The terminfo defines some special keys which are documented as "shifted",
  92. # e.g., kDC is shifted-delete-character. In this description, the modifier is
  93. # actually the control key, to avoid conflict with the common usage of shifted
  94. # pageup and pagedown for window manager functions.
  95. #
  96. xterm-xfree86|xterm-new|xterm terminal emulator (XFree86),
  97. npc,
  98. kDC=\E[3;5~,
  99. kEND=\EO5F,
  100. kHOM=\EO5H,
  101. kIC=\E[2;5~,
  102. kLFT=\EO5D,
  103. kNXT=\E[6;5~,
  104. kPRV=\E[5;5~,
  105. kRIT=\EO5C,
  106. kb2=\EOE,
  107. kcbt=\E[Z,
  108. kcub1=\EOD,
  109. kcud1=\EOB,
  110. kcuf1=\EOC,
  111. kcuu1=\EOA,
  112. kend=\EOF,
  113. kent=\EOM,
  114. kf1=\EOP,
  115. kf10=\E[21~,
  116. kf11=\E[23~,
  117. kf12=\E[24~,
  118. kf13=\EO2P,
  119. kf14=\EO2Q,
  120. kf15=\EO2R,
  121. kf16=\EO2S,
  122. kf17=\E[15;2~,
  123. kf18=\E[17;2~,
  124. kf19=\E[18;2~,
  125. kf2=\EOQ,
  126. kf20=\E[19;2~,
  127. kf21=\E[20;2~,
  128. kf22=\E[21;2~,
  129. kf23=\E[23;2~,
  130. kf24=\E[24;2~,
  131. kf25=\EO5P,
  132. kf26=\EO5Q,
  133. kf27=\EO5R,
  134. kf28=\EO5S,
  135. kf29=\E[15;5~,
  136. kf3=\EOR,
  137. kf30=\E[17;5~,
  138. kf31=\E[18;5~,
  139. kf32=\E[19;5~,
  140. kf33=\E[20;5~,
  141. kf34=\E[21;5~,
  142. kf35=\E[23;5~,
  143. kf36=\E[24;5~,
  144. kf37=\EO6P,
  145. kf38=\EO6Q,
  146. kf39=\EO6R,
  147. kf4=\EOS,
  148. kf40=\EO6S,
  149. kf41=\E[15;6~,
  150. kf42=\E[17;6~,
  151. kf43=\E[18;6~,
  152. kf44=\E[19;6~,
  153. kf45=\E[20;6~,
  154. kf46=\E[21;6~,
  155. kf47=\E[23;6~,
  156. kf48=\E[24;6~,
  157. kf5=\E[15~,
  158. kf6=\E[17~,
  159. kf7=\E[18~,
  160. kf8=\E[19~,
  161. kf9=\E[20~,
  162. khome=\EOH,
  163. kich1=\E[2~,
  164. kmous=\E[M,
  165. knp=\E[6~,
  166. kpp=\E[5~,
  167. use=xterm-basic,
  168. #
  169. # This chunk is used for building the VT220/Sun/PC keyboard variants.
  170. xterm-basic|xterm terminal emulator - common (XFree86),
  171. am,
  172. bce,
  173. km,
  174. mc5i,
  175. mir,
  176. msgr,
  177. xenl,
  178. colors#8,
  179. cols#80,
  180. it#8,
  181. lines#24,
  182. pairs#64,
  183. acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
  184. bel=^G,
  185. blink=\E[5m,
  186. bold=\E[1m,
  187. cbt=\E[Z,
  188. civis=\E[?25l,
  189. clear=\E[H\E[2J,
  190. cnorm=\E[?25h,
  191. cr=^M,
  192. csr=\E[%i%p1%d;%p2%dr,
  193. cub=\E[%p1%dD,
  194. cub1=^H,
  195. cud=\E[%p1%dB,
  196. cud1=^J,
  197. cuf=\E[%p1%dC,
  198. cuf1=\E[C,
  199. cup=\E[%i%p1%d;%p2%dH,
  200. cuu=\E[%p1%dA,
  201. cuu1=\E[A,
  202. dch=\E[%p1%dP,
  203. dch1=\E[P,
  204. dl=\E[%p1%dM,
  205. dl1=\E[M,
  206. ech=\E[%p1%dX,
  207. ed=\E[J,
  208. el=\E[K,
  209. el1=\E[1K,
  210. enacs=\E(B\E)0,
  211. flash=\E[?5h$<100/>\E[?5l,
  212. home=\E[H,
  213. hpa=\E[%i%p1%dG,
  214. ht=^I,
  215. hts=\EH,
  216. ich=\E[%p1%d@,
  217. il=\E[%p1%dL,
  218. il1=\E[L,
  219. ind=^J,
  220. invis=\E[8m,
  221. is2=\E[!p\E[?3;4l\E[4l\E>,
  222. kbs=^H,
  223. kdch1=\E[3~,
  224. mc0=\E[i,
  225. mc4=\E[4i,
  226. mc5=\E[5i,
  227. meml=\El,
  228. memu=\Em,
  229. op=\E[39;49m,
  230. rc=\E8,
  231. rev=\E[7m,
  232. ri=\EM,
  233. rmacs=^O,
  234. rmam=\E[?7l,
  235. rmcup=\E[?1049l,
  236. rmir=\E[4l,
  237. rmkx=\E[?1l\E>,
  238. rmso=\E[27m,
  239. rmul=\E[24m,
  240. rs1=\Ec,
  241. rs2=\E[!p\E[?3;4l\E[4l\E>,
  242. sc=\E7,
  243. setab=\E[4%p1%dm,
  244. setaf=\E[3%p1%dm,
  245. setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
  246. setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
  247. 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%;,
  248. sgr0=\E[m\017,
  249. smacs=^N,
  250. smam=\E[?7h,
  251. smcup=\E[?1049h,
  252. smir=\E[4h,
  253. smkx=\E[?1h\E=,
  254. smso=\E[7m,
  255. smul=\E[4m,
  256. tbc=\E[3g,
  257. u6=\E[%i%d;%dR,
  258. u7=\E[6n,
  259. u8=\E[?1;2c,
  260. u9=\E[c,
  261. vpa=\E[%i%p1%dd,
  262. # xterm-debian is identical to xterm-xfree86 except that it more strictly
  263. # conforms to DEC VT220 behavior in the case of the backspace key; this is
  264. # mandated by the Section 3.8 of the Debian Policy Manual. Also see
  265. # <http://vt100.net/docs/vt220-rm/>.
  266. xterm-debian|Debian xterm (VT220-conformant backspace),
  267. kbs=\177,
  268. use=xterm-xfree86,
  269. #
  270. # The xterm-xfree86 description has all of the features, but is not completely
  271. # compatible with vt220. If you are using a Sun or PC keyboard, set the
  272. # sunKeyboard resource to true:
  273. # + maps the editing keypad
  274. # + interprets control-function-key as a second array of keys, so a
  275. # 12-fkey keyboard can support vt220's 20-fkeys.
  276. # + maps numeric keypad "+" to ",".
  277. # + uses DEC-style control sequences for the application keypad.
  278. #
  279. xterm-vt220|XFree86 xterm emulating vt220,
  280. ka1=\EOw,
  281. ka3=\EOy,
  282. kbeg=\EOu,
  283. kc1=\EOq,
  284. kc3=\EOs,
  285. kcbt=\E[Z,
  286. kcub1=\EOD,
  287. kcud1=\EOB,
  288. kcuf1=\EOC,
  289. kcuu1=\EOA,
  290. kend=\E[4~,
  291. kent=\EOM,
  292. kf1=\EOP,
  293. kf10=\E[21~,
  294. kf11=\E[23~,
  295. kf12=\E[24~,
  296. kf13=\E[25~,
  297. kf14=\E[26~,
  298. kf15=\E[28~,
  299. kf16=\E[29~,
  300. kf17=\E[31~,
  301. kf18=\E[32~,
  302. kf19=\E[33~,
  303. kf2=\EOQ,
  304. kf20=\E[34~,
  305. kf3=\EOR,
  306. kf4=\EOS,
  307. kf5=\E[15~,
  308. kf6=\E[17~,
  309. kf7=\E[18~,
  310. kf8=\E[19~,
  311. kf9=\E[20~,
  312. khome=\E[1~,
  313. kich1=\E[2~,
  314. kmous=\E[M,
  315. knp=\E[6~,
  316. kpp=\E[5~,
  317. use=xterm-basic,
  318. #
  319. xterm-vt52|XFree86 xterm emulating dec vt52,
  320. cols#80,
  321. it#8,
  322. lines#24,
  323. acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
  324. bel=^G,
  325. clear=\EH\EJ,
  326. cr=^M,
  327. cub1=\ED,
  328. cud1=\EB,
  329. cuf1=\EC,
  330. cup=\EY%p1%' '%+%c%p2%' '%+%c,
  331. cuu1=\EA,
  332. ed=\EJ,
  333. el=\EK,
  334. home=\EH,
  335. ht=^I,
  336. ind=^J,
  337. kbs=^H,
  338. kcub1=\ED,
  339. kcud1=\EB,
  340. kcuf1=\EC,
  341. kcuu1=\EA,
  342. nel=^M^J,
  343. ri=\EI,
  344. rmacs=\EG,
  345. smacs=\EF,
  346. #
  347. # kf30-kf45 are keysyms XK_R1 through XK_R15 on the Sun keyboard.
  348. xterm-sun|XFree86 xterm with sun function keys,
  349. kb2=\E[218z,
  350. kcpy=\E[197z,
  351. kcub1=\EOD,
  352. kcud1=\EOB,
  353. kcuf1=\EOC,
  354. kcuu1=\EOA,
  355. kdch1=\177,
  356. kend=\E[220z,
  357. kent=\EOM,
  358. kf1=\E[224z,
  359. kf10=\E[233z,
  360. kf11=\E[192z,
  361. kf12=\E[193z,
  362. kf13=\E[194z,
  363. kf14=\E[195z,
  364. kf15=\E[196z,
  365. kf17=\E[198z,
  366. kf18=\E[199z,
  367. kf19=\E[200z,
  368. kf2=\E[225z,
  369. kf20=\E[201z,
  370. kf3=\E[226z,
  371. kf31=\E[208z,
  372. kf32=\E[209z,
  373. kf33=\E[210z,
  374. kf34=\E[211z,
  375. kf35=\E[212z,
  376. kf36=\E[213z,
  377. kf38=\E[215z,
  378. kf4=\E[227z,
  379. kf40=\E[217z,
  380. kf42=\E[219z,
  381. kf44=\E[221z,
  382. kf5=\E[228z,
  383. kf6=\E[229z,
  384. kf7=\E[230z,
  385. kf8=\E[231z,
  386. kf9=\E[232z,
  387. kfnd=\E[200z,
  388. khlp=\E[196z,
  389. khome=\E[214z,
  390. kich1=\E[2z,
  391. kmous=\E[M,
  392. knp=\E[222z,
  393. kpp=\E[216z,
  394. kund=\E[195z,
  395. use=xterm-basic,
  396. #
  397. xterm-hp|XFree86 xterm with hpterm function keys,
  398. kclr=\EJ,
  399. kcub1=\ED,
  400. kcud1=\EB,
  401. kcuf1=\EC,
  402. kcuu1=\EA,
  403. kdch1=\EP,
  404. kend=\EF,
  405. kf1=\Ep,
  406. kf2=\Eq,
  407. kf3=\Er,
  408. kf4=\Es,
  409. kf5=\Et,
  410. kf6=\Eu,
  411. kf7=\Ev,
  412. kf8=\Ew,
  413. khome=\Eh,
  414. kich1=\EQ,
  415. knp=\ES,
  416. kpp=\ET,
  417. use=xterm-basic,
  418. xterm-sco|XFree86 xterm with SCO function keys,
  419. kcub1=\E[D,
  420. kcud1=\E[B,
  421. kcuf1=\E[C,
  422. kcuu1=\E[A,
  423. kend=\E[F,
  424. kf1=\E[M,
  425. kf10=\E[V,
  426. kf11=\E[W,
  427. kf12=\E[X,
  428. kf13=\E[Y,
  429. kf15=\E[a,
  430. kf16=\E[b,
  431. kf17=\E[c,
  432. kf18=\E[d,
  433. kf19=\E[e,
  434. kf2=\E[N,
  435. kf20=\E[f,
  436. kf21=\E[g,
  437. kf22=\E[h,
  438. kf23=\E[i,
  439. kf24=\E[j,
  440. kf25=\E[k,
  441. kf26=\E[l,
  442. kf27=\E[m,
  443. kf28=\E[n,
  444. kf29=\E[o,
  445. kf3=\E[O,
  446. kf30=\E[p,
  447. kf31=\E[q,
  448. kf32=\E[r,
  449. kf33=\E[s,
  450. kf34=\E[t,
  451. kf35=\E[u,
  452. kf4=\E[P,
  453. kf5=\E[Q,
  454. kf6=\E[R,
  455. kf7=\E[S,
  456. kf8=\E[T,
  457. kf9=\E[U,
  458. khome=\E[H,
  459. kich1=\E[L,
  460. knp=\E[G,
  461. kpp=\E[I,
  462. use=xterm-basic,
  463. #
  464. # Other variants:
  465. xterm-24|xterms|vs100|xterm terminal emulator (X Window System),
  466. lines#24,
  467. use=xterm,
  468. xterm-65|xterm with tall window 65x80 (X Window System),
  469. lines#65,
  470. use=xterm,
  471. xterm-bold|xterm with bold instead of underline (X Window System),
  472. smso=\E[7m,
  473. smul=\E[1m,
  474. use=xterm,
  475. xterm-boldso|xterm with bold for standout (X Window System),
  476. rmso=\E[m,
  477. smso=\E[1m,
  478. use=xterm,
  479. xterm-mono|monochrome xterm,
  480. bce@,
  481. colors@,
  482. ncv@,
  483. pairs@,
  484. op@,
  485. setab@,
  486. setaf@,
  487. setb@,
  488. setf@,
  489. sgr@,
  490. use=xterm,
  491. #
  492. # VTxxx terminals are usually set up so that full-screen applications will use
  493. # the cursor application mode strings. This is good for full-screen
  494. # applications, including legacy applications which may have hard-coded
  495. # behavior, but bad for interactive shells (e.g., tcsh, bash) which use arrow
  496. # keys to scroll through a history of command strings.
  497. #
  498. # To see the difference between normal/application modes, consider this example:
  499. # + In normal (non-application) mode, the terminal transmits a down-arrow
  500. # as \E[C, which happens to echo as a down-arrow.
  501. # + In application mode the terminal transmits \EOC, which echoes as C.
  502. # That is because the \EO is the SS3 control, which says to use the
  503. # character from the G3 character set for the next cell.
  504. #
  505. # One example of hard-coded behavior would be for applications written to work
  506. # with VT52 and VT100 terminals. If the application's parser ignores 'O' and
  507. # '?' characters after the escape, then the cursor and keypad strings for the
  508. # two terminals are the same. (Indeed, one of the first curses applications
  509. # which I used did something like this to cover "ANSI" terminals -TD).
  510. #
  511. # To make this work (leaving the cursor keys in normal mode), we have to adjust
  512. # the terminal initialization sequences:
  513. #
  514. # smkx/rmkx set/reset the cursor and keypad application modes. We retain
  515. # the latter (otherwise many applications fail).
  516. #
  517. # smcup/rmcup set/restore cursor-addressing mode for full-screen
  518. # applications. For xterm, this normally means the alternate
  519. # screen, which is not compatible with interactive shells. Some
  520. # programs are "smart" and disable these.
  521. #
  522. xterm-noapp|xterm with cursor keys in normal mode,
  523. kcub1=\E[D,
  524. kcud1=\E[B,
  525. kcuf1=\E[C,
  526. kcuu1=\E[A,
  527. rmcup@,
  528. rmkx=\E>,
  529. smcup@,
  530. smkx=\E=,
  531. use=xterm,
  532. #
  533. # This should work for the commonly used "color xterm" variations (XFree86
  534. # xterm, color_xterm, nxterm, rxvt). Note that it does not set 'bce', so for
  535. # XFree86 and and rxvt, some applications that use colors will be less
  536. # efficient, and in a few special cases (with "smart" optimization) the wrong
  537. # color will be painted in spots.
  538. xterm-color|generic "ANSI" color xterm (X Window System),
  539. colors#8,
  540. ncv@,
  541. pairs#64,
  542. op=\E[m,
  543. setab=\E[4%p1%dm,
  544. setaf=\E[3%p1%dm,
  545. use=xterm-r6,
  546. #
  547. # vi may work better with this entry, because vi
  548. # doesn't use insert mode much
  549. xterm-ic|xterm-vi|xterm with insert character instead of insert mode,
  550. mir@,
  551. ich=\E[%p1%d@,
  552. ich1=\E[@,
  553. rmir@,
  554. smir@,
  555. use=xterm,
  556. #
  557. # This is used only for testing (it's not relevant to DEC VTxxx terminals, but
  558. # to ncurses).
  559. xterm-xmc|xterm with magic-cookie glitch,
  560. xmc#1,
  561. use=xterm-xfree86,
  562. #
  563. # This one also is primarily for testing ncurses; while the ISO 6429 defines
  564. # the REP control, none of the DEC VTxxx terminals (VT52 through VT420) support
  565. # it.
  566. xterm-rep|xterm with repeat-character control,
  567. rep=%p1%c\E[%p2%{1}%-%db,
  568. use=xterm-xfree86,
  569. #
  570. # This is mainly for testing xterm; the real VT220 will not let you switch
  571. # character sets without first altering the keyboard language in the setup
  572. # screen. Some emulators allow this anyway. (Note that these strings are
  573. # normally used only for printers). The parameter to csnm and scs is the same
  574. # in both cases: the keyboard language parameter returned by CSI ? 2 6 n.
  575. xterm-nrc|xterm with VT220 national replacement character sets,
  576. 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%;,
  577. 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%;,
  578. use=xterm-xfree86,
  579. #
  580. # Foreground 0-15 maps (with toggles) into 30-37 & 90-97
  581. # Background 0-15 maps (with toggles) into 40-47 & 100-107
  582. #
  583. # Originally I suppressed setaf/setab, since ANSI specifies only 8 colors, but
  584. # Stephen Marley persuaded me to allow the "ANSI" color controls to extend to
  585. # 16 colors. (Note that ncurses 4.2 uses setf/setb from this description;
  586. # however 5.0 selects either according to their availability). - T.Dickey
  587. #
  588. # SVr4 curses does not use more than 8 colors anyway, so using 16 colors is
  589. # either for terminfo-level applications or via ncurses.
  590. xterm-16color|xterm with 16 colors,
  591. colors#16,
  592. ncv#32,
  593. pairs#256,
  594. setab=\E[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm,
  595. setaf=\E[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm,
  596. 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,
  597. 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,
  598. use=xterm-xfree86,
  599. #
  600. # OPT_PC_MODE should be settable with OSC, and the init for this
  601. # should turn it off; then ncv could be 0.
  602. # This uses RGB values 0..1000
  603. xterm-256color|xterm with 256 colors,
  604. ccc,
  605. colors#256,
  606. ncv#32,
  607. pairs#256,
  608. initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
  609. setab=\E[48;5;%p1%dm,
  610. setaf=\E[38;5;%p1%dm,
  611. setb=\E[48;5;%p1%dm,
  612. setf=\E[38;5;%p1%dm,
  613. use=xterm-xfree86,
  614. xterm-88color|xterm with 88 colors,
  615. colors#88,
  616. pairs#88,
  617. use=xterm-256color,
  618. #
  619. # This is an 8-bit version of xterm, which emulates DEC vt220 with ANSI color.
  620. # To use it, your decTerminalID resource must be set to 200 or above, and the
  621. # sunKeyboard resource set to true.
  622. #
  623. # HTS \E H \210
  624. # RI \E M \215
  625. # SS3 \E O \217
  626. # CSI \E [ \233
  627. #
  628. xterm-8bit|xterm terminal emulator with 8-bit controls (X Window System),
  629. am,
  630. bce,
  631. km,
  632. mc5i,
  633. mir,
  634. msgr,
  635. npc,
  636. xenl,
  637. colors#8,
  638. cols#80,
  639. it#8,
  640. lines#24,
  641. pairs#64,
  642. acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
  643. bel=^G,
  644. blink=\2335m,
  645. bold=\2331m,
  646. cbt=\233Z,
  647. civis=\233?25l,
  648. clear=\233H\2332J,
  649. cnorm=\233?25h,
  650. cr=^M,
  651. csr=\233%i%p1%d;%p2%dr,
  652. cub=\233%p1%dD,
  653. cub1=^H,
  654. cud=\233%p1%dB,
  655. cud1=^J,
  656. cuf=\233%p1%dC,
  657. cuf1=\233C,
  658. cup=\233%i%p1%d;%p2%dH,
  659. cuu=\233%p1%dA,
  660. cuu1=\233A,
  661. dch=\233%p1%dP,
  662. dch1=\233P,
  663. dl=\233%p1%dM,
  664. dl1=\233M,
  665. ech=\233%p1%dX,
  666. ed=\233J,
  667. el=\233K,
  668. el1=\2331K,
  669. enacs=\E(B\E)0,
  670. flash=\233?5h$<100/>\233?5l,
  671. home=\233H,
  672. hpa=\233%i%p1%dG,
  673. ht=^I,
  674. hts=\210,
  675. ich=\233%p1%d@,
  676. il=\233%p1%dL,
  677. il1=\233L,
  678. ind=^J,
  679. invis=\2338m,
  680. is2=\E[62"p\E G\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r\E8,
  681. ka1=\217w,
  682. ka3=\217u,
  683. kb2=\217y,
  684. kbeg=\217E,
  685. kbs=^H,
  686. kc1=\217q,
  687. kc3=\217s,
  688. kcbt=\233Z,
  689. kcub1=\217D,
  690. kcud1=\217B,
  691. kcuf1=\217C,
  692. kcuu1=\217A,
  693. kdch1=\2333~,
  694. kend=\2334~,
  695. kent=\217M,
  696. kf1=\23311~,
  697. kf10=\23321~,
  698. kf11=\23323~,
  699. kf12=\23324~,
  700. kf13=\23325~,
  701. kf14=\23326~,
  702. kf15=\23328~,
  703. kf16=\23329~,
  704. kf17=\23331~,
  705. kf18=\23332~,
  706. kf19=\23333~,
  707. kf2=\23312~,
  708. kf20=\23334~,
  709. kf3=\23313~,
  710. kf4=\23314~,
  711. kf5=\23315~,
  712. kf6=\23317~,
  713. kf7=\23318~,
  714. kf8=\23319~,
  715. kf9=\23320~,
  716. khome=\2331~,
  717. kich1=\2332~,
  718. kmous=\233M,
  719. knp=\2336~,
  720. kpp=\2335~,
  721. mc0=\233i,
  722. mc4=\2334i,
  723. mc5=\2335i,
  724. meml=\El,
  725. memu=\Em,
  726. op=\23339;49m,
  727. rc=\E8,
  728. rev=\2337m,
  729. ri=\215,
  730. rmacs=^O,
  731. rmam=\233?7l,
  732. rmcup=\233?1049l,
  733. rmir=\2334l,
  734. rmkx=\233?1l\E>,
  735. rmso=\23327m,
  736. rmul=\23324m,
  737. rs1=\Ec,
  738. rs2=\E[62"p\E G\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r\E8,
  739. sc=\E7,
  740. setab=\2334%p1%dm,
  741. setaf=\2333%p1%dm,
  742. setb=\2334%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
  743. setf=\2333%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
  744. sgr=\2330%?%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
  745. sgr0=\233m^O,
  746. smacs=^N,
  747. smam=\233?7h,
  748. smcup=\233?1049h,
  749. smir=\2334h,
  750. smkx=\233?1h\E=,
  751. smso=\2337m,
  752. smul=\2334m,
  753. tbc=\2333g,
  754. u6=\233[%i%d;%dR,
  755. u7=\E[6n,
  756. u8=\233[?1;2c,
  757. u9=\E[c,
  758. vpa=\233%i%p1%dd,
  759. #
  760. # Compatible with the R6 xterm, with the following changes:
  761. # + added acsc (perhaps some versions of tic assume the standard vt100
  762. # alternate character set)
  763. # + added u6, u7, u8, u9 strings for Daniel Weaver's tack program.
  764. # + added kmous string for ncurses.
  765. # + added khome/kend strings (which conflict with kfnd/kslt, see note).
  766. xterm-r6|xterm-old|xterm X11R6 version,
  767. am,
  768. km,
  769. mir,
  770. msgr,
  771. xenl,
  772. cols#80,
  773. it#8,
  774. lines#24,
  775. acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
  776. bel=^G,
  777. blink@,
  778. bold=\E[1m,
  779. clear=\E[H\E[2J,
  780. cr=^M,
  781. csr=\E[%i%p1%d;%p2%dr,
  782. cub=\E[%p1%dD,
  783. cub1=^H,
  784. cud=\E[%p1%dB,
  785. cud1=^J,
  786. cuf=\E[%p1%dC,
  787. cuf1=\E[C,
  788. cup=\E[%i%p1%d;%p2%dH,
  789. cuu=\E[%p1%dA,
  790. cuu1=\E[A,
  791. dch=\E[%p1%dP,
  792. dch1=\E[P,
  793. dl=\E[%p1%dM,
  794. dl1=\E[M,
  795. ed=\E[J,
  796. el=\E[K,
  797. enacs=\E)0,
  798. home=\E[H,
  799. ht=^I,
  800. il=\E[%p1%dL,
  801. il1=\E[L,
  802. ind=^J,
  803. is2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
  804. kbs=^H,
  805. kcub1=\EOD,
  806. kcud1=\EOB,
  807. kcuf1=\EOC,
  808. kcuu1=\EOA,
  809. kdch1=\177,
  810. kend=\E[4~,
  811. kf1=\E[11~,
  812. kf10=\E[21~,
  813. kf11=\E[23~,
  814. kf12=\E[24~,
  815. kf13=\E[25~,
  816. kf14=\E[26~,
  817. kf15=\E[28~,
  818. kf16=\E[29~,
  819. kf17=\E[31~,
  820. kf18=\E[32~,
  821. kf19=\E[33~,
  822. kf2=\E[12~,
  823. kf20=\E[34~,
  824. kf3=\E[13~,
  825. kf4=\E[14~,
  826. kf5=\E[15~,
  827. kf6=\E[17~,
  828. kf7=\E[18~,
  829. kf8=\E[19~,
  830. kf9=\E[20~,
  831. khome=\E[1~,
  832. kich1=\E[2~,
  833. kmous=\E[M,
  834. knp=\E[6~,
  835. kpp=\E[5~,
  836. meml=\El,
  837. memu=\Em,
  838. rc=\E8,
  839. rev=\E[7m,
  840. ri=\EM,
  841. rmacs=^O,
  842. rmcup=\E[2J\E[?47l\E8,
  843. rmir=\E[4l,
  844. rmkx=\E[?1l\E>,
  845. rmso=\E[m,
  846. rmul=\E[m,
  847. rs2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
  848. sc=\E7,
  849. sgr0=\E[m,
  850. smacs=^N,
  851. smcup=\E7\E[?47h,
  852. smir=\E[4h,
  853. smkx=\E[?1h\E=,
  854. smso=\E[7m,
  855. smul=\E[4m,
  856. tbc=\E[3g,
  857. u6=\E[%i%d;%dR,
  858. u7=\E[6n,
  859. u8=\E[?1;2c,
  860. u9=\E[c,
  861. #
  862. # Compatible with the R5 xterm, with the following changes:
  863. # + changed 'blink=@', to 'blink@' (the former meant that "@" would start
  864. # a blink, the latter that it is not supported).
  865. # + changed kf1 through kf4 to correspond with actual usage. Though X
  866. # supports keypad symbols for PF1 to PF4, and xterm interprets these
  867. # correctly, the F1 to F4 codes are commonly (but incorrectly) used.
  868. # + moved reset string from rs1 to rs2, to correlate better with termcap.
  869. # + make khome consistent with other entries.
  870. # + use rmul/smul, rmir/smir from termcap, but not rmcup/smcup because
  871. # not everyone wants the alternate screen.
  872. # + added u6, u7, u8, u9 strings for Daniel Weaver's tack program.
  873. # + added kmous string for ncurses.
  874. xterm-r5|xterm R5 version,
  875. am,
  876. km,
  877. msgr,
  878. xenl,
  879. cols#80,
  880. it#8,
  881. lines#24,
  882. bel=^G,
  883. blink@,
  884. bold=\E[1m,
  885. clear=\E[H\E[2J,
  886. cr=^M,
  887. csr=\E[%i%p1%d;%p2%dr,
  888. cub=\E[%p1%dD,
  889. cub1=^H,
  890. cud=\E[%p1%dB,
  891. cud1=^J,
  892. cuf=\E[%p1%dC,
  893. cuf1=\E[C,
  894. cup=\E[%i%p1%d;%p2%dH,
  895. cuu=\E[%p1%dA,
  896. cuu1=\E[A,
  897. dch=\E[%p1%dP,
  898. dch1=\E[P,
  899. dl=\E[%p1%dM,
  900. dl1=\E[M,
  901. ed=\E[J,
  902. el=\E[K,
  903. home=\E[H,
  904. ht=^I,
  905. hts=\EH,
  906. ich=\E[%p1%d@,
  907. ich1=\E[@,
  908. il=\E[%p1%dL,
  909. il1=\E[L,
  910. ind=^J,
  911. kbs=^H,
  912. kcub1=\EOD,
  913. kcud1=\EOB,
  914. kcuf1=\EOC,
  915. kcuu1=\EOA,
  916. kdch1=\177,
  917. kdl1=\E[31~,
  918. kel=\E[8~,
  919. kend=\E[4~,
  920. kf0=\EOq,
  921. kf1=\E[11~,
  922. kf10=\E[21~,
  923. kf11=\E[23~,
  924. kf12=\E[24~,
  925. kf2=\E[12~,
  926. kf3=\E[13~,
  927. kf4=\E[14~,
  928. kf5=\E[15~,
  929. kf6=\E[17~,
  930. kf7=\E[18~,
  931. kf8=\E[19~,
  932. kf9=\E[20~,
  933. khome=\E[1~,
  934. kich1=\E[2~,
  935. kil1=\E[30~,
  936. kmous=\E[M,
  937. knp=\E[6~,
  938. kpp=\E[5~,
  939. rc=\E8,
  940. rev=\E[7m,
  941. ri=\EM,
  942. rmir=\E[4l,
  943. rmkx=\E[?1l\E>,
  944. rmso=\E[m,
  945. rmul=\E[m,
  946. rs2=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H,
  947. sc=\E7,
  948. sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
  949. sgr0=\E[m,
  950. smir=\E[4h,
  951. smkx=\E[?1h\E=,
  952. smso=\E[7m,
  953. smul=\E[4m,
  954. tbc=\E[3g,
  955. u6=\E[%i%d;%dR,
  956. u7=\E[6n,
  957. u8=\E[?1;2c,
  958. u9=\E[c,
  959. #
  960. # This is the only entry which you should have to customize, since "xterm"
  961. # is widely used for a variety of incompatible terminal emulations including
  962. # color_xterm and rxvt.
  963. xterm|X11 terminal emulator,
  964. use=xterm-debian,
  965. # use=xterm-xfree86,
  966. # use=xterm-r6,