xterm.ad 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ! This file causes when loaded using xrdb correct behavior of xterm
  2. ! if you are using enclosed xterm.tcap and xterm.ti.
  3. ! Some keys would never normally work if they weren't here (like Alt
  4. ! something), some key definitions differ from one termcap/terminfo
  5. ! to the other. You may delete any line if you find out that mc
  6. ! sends exactly that string which is mentioned here.
  7. ! See xterm(1).
  8. ! Either put this into your ~/.Xdefaults, or to app-defaults/XTerm
  9. ! or wherever it will be loaded into xrm from.
  10. ! To know, why this works, see Xt documentation (appendix B).
  11. ! On some systems you may want to replace the a (alt) modifiers with
  12. ! m (meta) modifier in front of some <Key> events.
  13. *vt100.translations: #override \
  14. <Key>Home: string(0x1b) string("[7~") \n\
  15. <Key>End: string(0x1b) string("[8~") \n\
  16. <Key>Insert: string(0x1b) string("[2~") \n\
  17. <Key>Delete: string(0x1b) string("[3~") \n\
  18. <Key>Page_Up: string(0x1b) string("[5~") \n\
  19. <Key>Page_Down: string(0x1b) string("[6~") \n\
  20. <Key>Left: string(0x1b) string("OD") \n\
  21. <Key>Right: string(0x1b) string("OC") \n\
  22. <Key>Up: string(0x1b) string("OA") \n\
  23. <Key>Down: string(0x1b) string("OB") \n\
  24. ~s<Key>F1: string(0x1b) string("[11~") \n\
  25. ~s<Key>F2: string(0x1b) string("[12~") \n\
  26. ~s<Key>F3: string(0x1b) string("[13~") \n\
  27. ~s<Key>F4: string(0x1b) string("[14~") \n\
  28. ~s<Key>F5: string(0x1b) string("[15~") \n\
  29. ~s<Key>F6: string(0x1b) string("[17~") \n\
  30. ~s<Key>F7: string(0x1b) string("[18~") \n\
  31. ~s<Key>F8: string(0x1b) string("[19~") \n\
  32. ~s<Key>F9: string(0x1b) string("[20~") \n\
  33. ~s<Key>F10: string(0x1b) string("[21~") \n\
  34. <Key>F11: string(0x1b) string("[23~") \n\
  35. <Key>F12: string(0x1b) string("[24~") \n\
  36. <Key>F13: string(0x1b) string("[25~") \n\
  37. <Key>F14: string(0x1b) string("[26~") \n\
  38. <Key>F15: string(0x1b) string("[28~") \n\
  39. <Key>F16: string(0x1b) string("[29~") \n\
  40. <Key>F17: string(0x1b) string("[31~") \n\
  41. <Key>F18: string(0x1b) string("[32~") \n\
  42. <Key>F19: string(0x1b) string("[33~") \n\
  43. <Key>F20: string(0x1b) string("[34~") \n\
  44. s<Key>F1: string(0x1b) string("[23~") \n\
  45. s<Key>F2: string(0x1b) string("[24~") \n\
  46. s<Key>F3: string(0x1b) string("[25~") \n\
  47. s<Key>F4: string(0x1b) string("[26~") \n\
  48. s<Key>F5: string(0x1b) string("[28~") \n\
  49. s<Key>F6: string(0x1b) string("[29~") \n\
  50. s<Key>F7: string(0x1b) string("[31~") \n\
  51. s<Key>F8: string(0x1b) string("[32~") \n\
  52. s<Key>F9: string(0x1b) string("[33~") \n\
  53. s<Key>F10: string(0x1b) string("[34~") \n\
  54. a<Key>Return: string(0x1b) string(0x0d) \n\
  55. a<Key>Tab: string(0x1b) string(0x09) \n\
  56. a<Key>space: string(0x1b) string(" ") \n\
  57. a<Key>a: string(0x1b) string("a") \n\
  58. a<Key>b: string(0x1b) string("b") \n\
  59. a<Key>c: string(0x1b) string("c") \n\
  60. a<Key>d: string(0x1b) string("d") \n\
  61. a<Key>e: string(0x1b) string("e") \n\
  62. a<Key>f: string(0x1b) string("f") \n\
  63. a<Key>g: string(0x1b) string("g") \n\
  64. a<Key>h: string(0x1b) string("h") \n\
  65. a<Key>i: string(0x1b) string("i") \n\
  66. a<Key>j: string(0x1b) string("j") \n\
  67. a<Key>k: string(0x1b) string("k") \n\
  68. a<Key>l: string(0x1b) string("l") \n\
  69. a<Key>m: string(0x1b) string("m") \n\
  70. a<Key>n: string(0x1b) string("n") \n\
  71. a<Key>o: string(0x1b) string("o") \n\
  72. a<Key>p: string(0x1b) string("p") \n\
  73. a<Key>q: string(0x1b) string("q") \n\
  74. a<Key>r: string(0x1b) string("r") \n\
  75. a<Key>s: string(0x1b) string("s") \n\
  76. a<Key>t: string(0x1b) string("t") \n\
  77. a<Key>u: string(0x1b) string("u") \n\
  78. a<Key>v: string(0x1b) string("v") \n\
  79. a<Key>w: string(0x1b) string("w") \n\
  80. a<Key>x: string(0x1b) string("x") \n\
  81. a<Key>y: string(0x1b) string("y") \n\
  82. a<Key>z: string(0x1b) string("z")