1
0

rxvt.ti 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. # From: Thomas Dickey <dickey@clark.net> 04 Oct 1997
  2. # Updated: Oezguer Kesim <kesim@math.fu-berlin.de> 02 Nov 1997
  3. # Notes:
  4. # rxvt 2.21b uses
  5. # smacs=\E(B\E)U^N, rmacs=\E(B\E)0^O,
  6. # but some applications don't work with that.
  7. # It also has an AIX extension
  8. # box2=lqkxjmwuvtn,
  9. # and
  10. # ech=\E[%p1%dX,
  11. # but the latter does not work correctly.
  12. #
  13. # The distributed terminfo says it implements hpa and vpa, but they are not
  14. # implemented correctly, using relative rather than absolute positioning.
  15. #
  16. # rxvt is normally configured to look for "xterm" or "xterm-color" as $TERM.
  17. # Since rxvt is not really compatible with xterm, it should be configured as
  18. # "rxvt" (monochrome) and "rxvt-color".
  19. #
  20. # removed dch/dch1 because they are inconsistent with bce/ech -TD
  21. #
  22. # Debian's changes:
  23. # Debian uses two termcap/terminfo entries:
  24. # rxvt for color displays
  25. # rxvt-m for monochrome displays
  26. # Debian also prefers ^? for kbs (backspace).
  27. #
  28. # These additional changes were added for the ncurses package:
  29. # Remove kf0 (wtf has F0 anyhow?) due to conflict with kf10.
  30. # Move hpa and vpa back to rxvt-basic, since they were fixed
  31. # to use absolute positioning long ago.
  32. # Use vt220+keypad after rxvt+pcfkeys, since rxvt uses \E[11~ for
  33. # F1 (\EOP is for KP_F1).
  34. # Use smkx instead of rmkx in rs2.
  35. rxvt-basic|rxvt-m|rxvt terminal base (X Window System),
  36. OTbs, am, bce, eo, km, mir, msgr, xenl, xon,
  37. cols#80, it#8, lines#24,
  38. acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
  39. bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
  40. clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
  41. csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
  42. cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
  43. cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
  44. dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
  45. enacs=\E(B\E)0, flash=\E[?5h\E[?5l, home=\E[H, ht=^I,
  46. hpa=\E[%i%p1%dG,
  47. hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
  48. ind=^J, is1=\E[?47l\E=\E[?1l,
  49. is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, kbs=^?,
  50. kcbt=\E[Z, kmous=\E[M, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
  51. rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=\E>, rmso=\E[27m,
  52. rmul=\E[24m,
  53. rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
  54. rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E=\E[?1000l\E[?25h,
  55. s0ds=\E(B, s1ds=\E(0, sc=\E7,
  56. sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
  57. sgr0=\E[0m\017, smacs=^N, smcup=\E7\E[?47h, smir=\E[4h,
  58. smkx=\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
  59. vpa=\E[%i%p1%dd,
  60. use=rxvt+pcfkeys, use=vt220+keypad,
  61. # Key Codes from rxvt reference:
  62. #
  63. # Note: Shift + F1-F10 generates F11-F20
  64. #
  65. # For the keypad, use Shift to temporarily override Application-Keypad
  66. # setting use Num_Lock to toggle Application-Keypad setting if Num_Lock
  67. # is off, escape sequences toggle Application-Keypad setting.
  68. # Also note that values of Home, End, Delete may have been compiled
  69. # differently on your system.
  70. #
  71. # Normal Shift Control Ctrl+Shift
  72. # Tab ^I ESC [ Z ^I ESC [ Z
  73. # BackSpace ^H ^? ^? ^?
  74. # Find ESC [ 1 ~ ESC [ 1 $ ESC [ 1 ^ ESC [ 1 @
  75. # Insert ESC [ 2 ~ paste ESC [ 2 ^ ESC [ 2 @
  76. # Execute ESC [ 3 ~ ESC [ 3 $ ESC [ 3 ^ ESC [ 3 @
  77. # Select ESC [ 4 ~ ESC [ 4 $ ESC [ 4 ^ ESC [ 4 @
  78. # Prior ESC [ 5 ~ scroll-up ESC [ 5 ^ ESC [ 5 @
  79. # Next ESC [ 6 ~ scroll-down ESC [ 6 ^ ESC [ 6 @
  80. # Home ESC [ 7 ~ ESC [ 7 $ ESC [ 7 ^ ESC [ 7 @
  81. # End ESC [ 8 ~ ESC [ 8 $ ESC [ 8 ^ ESC [ 8 @
  82. # Delete ESC [ 3 ~ ESC [ 3 $ ESC [ 3 ^ ESC [ 3 @
  83. # F1 ESC [ 11 ~ ESC [ 23 ~ ESC [ 11 ^ ESC [ 23 ^
  84. # F2 ESC [ 12 ~ ESC [ 24 ~ ESC [ 12 ^ ESC [ 24 ^
  85. # F3 ESC [ 13 ~ ESC [ 25 ~ ESC [ 13 ^ ESC [ 25 ^
  86. # F4 ESC [ 14 ~ ESC [ 26 ~ ESC [ 14 ^ ESC [ 26 ^
  87. # F5 ESC [ 15 ~ ESC [ 28 ~ ESC [ 15 ^ ESC [ 28 ^
  88. # F6 ESC [ 17 ~ ESC [ 29 ~ ESC [ 17 ^ ESC [ 29 ^
  89. # F7 ESC [ 18 ~ ESC [ 31 ~ ESC [ 18 ^ ESC [ 31 ^
  90. # F8 ESC [ 19 ~ ESC [ 32 ~ ESC [ 19 ^ ESC [ 32 ^
  91. # F9 ESC [ 20 ~ ESC [ 33 ~ ESC [ 20 ^ ESC [ 33 ^
  92. # F10 ESC [ 21 ~ ESC [ 34 ~ ESC [ 21 ^ ESC [ 34 ^
  93. # F11 ESC [ 23 ~ ESC [ 23 $ ESC [ 23 ^ ESC [ 23 @
  94. # F12 ESC [ 24 ~ ESC [ 24 $ ESC [ 24 ^ ESC [ 24 @
  95. # F13 ESC [ 25 ~ ESC [ 25 $ ESC [ 25 ^ ESC [ 25 @
  96. # F14 ESC [ 26 ~ ESC [ 26 $ ESC [ 26 ^ ESC [ 26 @
  97. # F15 (Help) ESC [ 28 ~ ESC [ 28 $ ESC [ 28 ^ ESC [ 28 @
  98. # F16 (Menu) ESC [ 29 ~ ESC [ 29 $ ESC [ 29 ^ ESC [ 29 @
  99. # F17 ESC [ 31 ~ ESC [ 31 $ ESC [ 31 ^ ESC [ 31 @
  100. # F18 ESC [ 32 ~ ESC [ 32 $ ESC [ 32 ^ ESC [ 32 @
  101. # F19 ESC [ 33 ~ ESC [ 33 $ ESC [ 33 ^ ESC [ 33 @
  102. # F20 ESC [ 34 ~ ESC [ 34 $ ESC [ 34 ^ ESC [ 34 @
  103. # Application
  104. # Up ESC [ A ESC [ a ESC O a ESC O A
  105. # Down ESC [ B ESC [ b ESC O b ESC O B
  106. # Right ESC [ C ESC [ c ESC O c ESC O C
  107. # Left ESC [ D ESC [ d ESC O d ESC O D
  108. # KP_Enter ^M ESC O M
  109. # KP_F1 ESC O P ESC O P
  110. # KP_F2 ESC O Q ESC O Q
  111. # KP_F3 ESC O R ESC O R
  112. # KP_F4 ESC O S ESC O S
  113. # XK_KP_Multiply * ESC O j
  114. # XK_KP_Add + ESC O k
  115. # XK_KP_Separator , ESC O l
  116. # XK_KP_Subtract - ESC O m
  117. # XK_KP_Decimal . ESC O n
  118. # XK_KP_Divide / ESC O o
  119. # XK_KP_0 0 ESC O p
  120. # XK_KP_1 1 ESC O q
  121. # XK_KP_2 2 ESC O r
  122. # XK_KP_3 3 ESC O s
  123. # XK_KP_4 4 ESC O t
  124. # XK_KP_5 5 ESC O u
  125. # XK_KP_6 6 ESC O v
  126. # XK_KP_7 7 ESC O w
  127. # XK_KP_8 8 ESC O x
  128. # XK_KP_9 9 ESC O y
  129. rxvt+pcfkeys|fragment for PC-style fkeys,
  130. kDC=\E[3$, kEND=\E[8$, kHOM=\E[7$, kLFT=\E[d, kNXT=\E[6$,
  131. kPRV=\E[5$, kRIT=\E[c, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
  132. kcuu1=\E[A, kdch1=\E[3~, kel=\E[8\^, kend=\E[8~,
  133. kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
  134. kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
  135. kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[12~,
  136. kf20=\E[34~, kf21=\E[23$, kf22=\E[24$, kf23=\E[11\^,
  137. kf24=\E[12\^, kf25=\E[13\^, kf26=\E[14\^, kf27=\E[15\^,
  138. kf28=\E[17\^, kf29=\E[18\^, kf3=\E[13~, kf30=\E[19\^,
  139. kf31=\E[20\^, kf32=\E[21\^, kf33=\E[23\^, kf34=\E[24\^,
  140. kf35=\E[25\^, kf36=\E[26\^, kf37=\E[28\^, kf38=\E[29\^,
  141. kf39=\E[31\^, kf4=\E[14~, kf40=\E[32\^, kf41=\E[33\^,
  142. kf42=\E[34\^, kf43=\E[23@, kf44=\E[24@, kf5=\E[15~,
  143. kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
  144. khome=\E[7~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kslt=\E[4~,
  145. kDN=\E[b, kDN5=\EOb, kDN6=\EOB, kLFT5=\EOd, kLFT6=\EOD,
  146. kRIT5=\EOc, kRIT6=\EOC, kUP=\E[a, kUP5=\EOa, kUP6=\EOA,
  147. rxvt|rxvt terminal emulator (X Window System),
  148. ncv@,
  149. sgr0=\E[m\017,
  150. use=rxvt-basic, use=ecma+color,
  151. rxvt-color|rxvt terminal emulator (X Window System),
  152. use=rxvt,
  153. rxvt-256color|rxvt 2.7.9 with xterm 256-colors,
  154. use=xterm+256color, use=rxvt,
  155. rxvt-88color|rxvt 2.7.9 with xterm 88-colors,
  156. use=xterm+88color, use=rxvt,
  157. rxvt-xpm|rxvt terminal emulator (X Window System),
  158. use=rxvt,
  159. rxvt-cygwin|rxvt terminal emulator (X Window System) on cygwin,
  160. acsc=0\333+\257\,\256-\^`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
  161. use=rxvt,
  162. rxvt-cygwin-native|rxvt terminal emulator (native MS Window System port) on cygwin,
  163. acsc=0\333+\257\,\256-\^`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330~\376,
  164. use=rxvt-cygwin,
  165. # This variant is supposed to work with rxvt 2.7.7 when compiled with
  166. # NO_BRIGHTCOLOR defined. rxvt needs more work...
  167. rxvt-16color|xterm with 16 colors like aixterm,
  168. ncv#32, use=ibm+16color, use=rxvt,