home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / jove-4.16-bin.lha / lib / jove / jove.rc.xterm < prev    next >
Text File  |  1996-10-12  |  7KB  |  227 lines

  1. # The following bindings should work with most keyboards when used
  2. # with the 'xterm' terminal emulator.  There are two sets of bindings of
  3. # function keys within 'xterm' that are commonly used on Suns, one emulating
  4. # the customary Sun bindings and the other being more vt220-like.  The
  5. # following binding will work with either of them.  Note: in the preceding,
  6. # "binding" means the characters sent by xterm to the program in response
  7. # to keystrokes.
  8.  
  9. # Xterm Mouse Bindings
  10. #
  11. # If its program enables the mode, xterm will send the client character
  12. # sequences signifying certain mouse events.  JOVE will enable this mode
  13. # while it is running if the xt-mouse variable is on.
  14.  
  15. set xt-mouse on
  16.  
  17. # JOVE decodes the resulting character sequences using its normal
  18. # key binding techiques.  These bindings invoke certain commands designed
  19. # to process mouse events.  Here we have two set of bindings: one
  20. # makes mouse actions behave analogously to those in xterm; the other
  21. # is more like OpenLook.  One should be suppressed via commenting.
  22. #
  23. # Bindings to give other "looks and feels" are possible, except for
  24. # operations marked 'button 1 ONLY' below.  Those operations involving
  25. # use of CTRL require the special translation table contained in the
  26. # file 'XTermresource'.
  27.  
  28. # Xterm "Look and Feel" Bindings:
  29. #
  30. # button 1:
  31. #    down with no modifiers:
  32. #        xt-mouse-point [set point to mouse location]
  33. #    down with CTRL held:
  34. #        xt-mouse-mark [set point and mark to mouse location]
  35. # button 2:
  36. #    down with no modifiers:
  37. #        xt-mouse-point-yank [yank at mouse location]
  38. #        [weaker but more xterm-like binding: xt-mouse-yank for yank at point]
  39. #    down with CTRL held:
  40. #        xt-mouse-cut-point-yank [delete region and yank at mouse location]
  41. # button 3:
  42. #    down with no modifiers:
  43. #        xt-mouse-extend [extend copied region and re-copy]
  44. #    down with CTRL held:
  45. #        xt-mouse-null
  46. # button up:
  47. #    up after drag: [button 1 ONLY]
  48. #        xt-mouse-mark-drag-point-copy [set region and copy]
  49. #    other button up:
  50. #        xt-mouse-null
  51.  
  52. # button 1 down [note that the next line has a SPace at the end]
  53. bind-to-key xt-mouse-point ^[[M 
  54. bind-to-key xt-mouse-mark ^[[M0
  55.  
  56. # button 2 down
  57. # less powerful but more xterm-like: bind-to-key xt-mouse-yank ^[[M!
  58. bind-to-key xt-mouse-point-yank ^[[M!
  59. bind-to-key xt-mouse-cut-point-yank ^[[M1
  60.  
  61. # button 3 down
  62. bind-to-key xt-mouse-extend ^[[M"
  63. bind-to-key xt-mouse-null ^[[M2
  64.  
  65. # button 1 up after drag and/or multiclick
  66. bind-to-key xt-mouse-mark-drag-point-copy ^[[T
  67. bind-to-key xt-mouse-mark-drag-point-copy ^[[t
  68.  
  69. # other button releases
  70. bind-to-key xt-mouse-null ^[[M#
  71. bind-to-key xt-mouse-null ^[[M3
  72.  
  73. # End of xterm "look and feel" bindings.
  74.  
  75.  
  76. ## OpenLook "Look and Feel" Bindings:
  77. ##
  78. ## The differences are in buttons 2 and 3.
  79. ##
  80. ## button 1:
  81. ##    down with no modifiers:
  82. ##        xt-mouse-point [set point to mouse location]
  83. ##    down with CTRL held:
  84. ##        xt-mouse-mark [set point and mark to mouse location]
  85. ## button 2:
  86. ##    down with no modifiers:
  87. ##        xt-mouse-extend [extend copied region and re-copy]
  88. ##    down with CTRL held:
  89. ##        xt-mouse-point-yank [yank at mouse location]
  90. ## button 3:
  91. ##    down with no modifiers:
  92. ##        xt-mouse-null
  93. ##    down with CTRL held:
  94. ##        xt-mouse-cut-point-yank [delete region and yank at mouse location]
  95. ## button up:
  96. ##    up after drag: [button 1 ONLY]
  97. ##        xt-mouse-mark-drag-point-copy [set region and copy]
  98. ##    other button up:
  99. ##        xt-mouse-null
  100. #
  101. ## button 1 down [note that the next line has a SPace at the end]
  102. #bind-to-key xt-mouse-point ^[[M 
  103. #bind-to-key xt-mouse-mark ^[[M0
  104. #
  105. ## button 2 down
  106. #bind-to-key xt-mouse-extend ^[[M!
  107. #bind-to-key xt-mouse-point-yank ^[[M1
  108. #
  109. ## button 3 down
  110. #bind-to-key xt-mouse-null ^[[M"
  111. #bind-to-key xt-mouse-cut-point-yank ^[[M2
  112. #
  113. ## button 1 up after drag and/or multiclick
  114. #bind-to-key xt-mouse-mark-drag-point-copy ^[[T
  115. #bind-to-key xt-mouse-mark-drag-point-copy ^[[t
  116. #
  117. ## other button releases
  118. #bind-to-key xt-mouse-null ^[[M#
  119. #bind-to-key xt-mouse-null ^[[M3
  120. #
  121. ## End of OpenLook "look and feel" bindings.
  122.  
  123.  
  124. # define macro to display TERMinal-specific keychart file
  125. define-macro keychart ^[xpushlibd^M^U^[xshell-command-with-typeout cat keychart.$TERM^M^[xpopd^M
  126.  
  127. # See the file jove.rc.sun(-cmd) for further details of this binding, and
  128. # for reasons why it is as it is.
  129.  
  130. # Arrow keys
  131. bind-to-key backward-character ^[[D
  132. bind-to-key previous-line ^[[A
  133. bind-to-key next-line ^[[B
  134. bind-to-key forward-character ^[[C
  135. bind-to-key backward-character ^[OD
  136. bind-to-key previous-line ^[OA
  137. bind-to-key next-line ^[OB
  138. bind-to-key forward-character ^[OC
  139.  
  140. # L keys
  141. bind-to-key over-write-mode ^[[192z
  142. bind-to-key auto-fill-mode ^[[193z
  143. bind-to-key set-mark ^[[194z
  144. bind-to-key set-mark ^[[25~
  145. bind-to-key exchange-point-and-mark ^[[195z
  146. bind-to-key exchange-point-and-mark ^[[26~
  147. bind-to-key copy-region ^[[197z
  148. bind-to-key copy-region ^[[29~
  149. bind-to-key yank ^[[199z
  150. bind-to-key yank ^[[32~
  151. bind-to-key search-forward ^[[200z
  152. bind-to-key search-forward ^[[33~
  153. bind-to-key search-forward ^[[1~
  154. bind-to-key search-reverse ^[^[[200z
  155. bind-to-key search-reverse ^[^[[33~
  156. bind-to-key search-reverse ^[^[[1~
  157. bind-to-key kill-region ^[[201z
  158. bind-to-key kill-region ^[[34~
  159.  
  160. # Help key
  161. bind-macro-to-key keychart ^[[202z
  162.  
  163. # F keys
  164. bind-to-key execute-named-command ^[[224z
  165. bind-to-key execute-named-command ^[[11~
  166. bind-to-key split-current-window ^[[225z
  167. bind-to-key split-current-window ^[[12~
  168. bind-to-key next-window ^[[226z
  169. bind-to-key next-window ^[[13~
  170. bind-to-key delete-other-window ^[[227z
  171. bind-to-key delete-other-window ^[[14~
  172. bind-to-key delete-current-window ^[[228z
  173. bind-to-key delete-current-window ^[[15~
  174. bind-to-key grow-window ^[[229z
  175. bind-to-key grow-window ^[[17~
  176. bind-to-key spell-buffer ^[[230z
  177. bind-to-key spell-buffer ^[[18~
  178. bind-to-key fill-comment ^[[231z
  179. bind-to-key fill-comment ^[[19~
  180. bind-to-key fill-paragraph ^[[232z
  181. bind-to-key fill-paragraph ^[[20~
  182. bind-to-key list-buffers ^[[233z
  183. bind-to-key list-buffers ^[[21~
  184. bind-to-key select-buffer ^[[234z
  185. bind-to-key select-buffer ^[[23~
  186. bind-to-key find-file ^[[235z
  187. bind-to-key find-file ^[[24~
  188.  
  189. # On many keyboards the Backspace key is near Delete and, in the
  190. # default Jove bindings these both do delete-previous-character. They would
  191. # make a fine pair with one to delete forward and one to delete backward.
  192. # For historical reasons, we leave them both as delete backward, but
  193. # recommend that the adventurous (or IBM PC acculturated) enable these.
  194. # bind-to-key delete-next-character ^?
  195. # bind-to-key kill-next-word ^[^?
  196.  
  197. # R keys (these are all associated with cursor movement or scrolling)
  198. bind-to-key unbound ^[[208z
  199. bind-to-key beginning-of-line ^[[209z
  200. bind-to-key end-of-line ^[[210z
  201. bind-to-key unbound ^[[211z
  202. bind-to-key backward-word ^[[212z
  203. bind-to-key forward-word ^[[213z
  204. bind-to-key beginning-of-file ^[[214z
  205. bind-to-key beginning-of-file ^[[41~
  206. bind-to-key previous-page ^[[216z
  207. bind-to-key previous-page ^[[5~
  208. # This moves the cursor to the start of the next line.
  209. define-macro newline-and-beginning ^A^N
  210. bind-macro-to-key newline-and-beginning ^[[218z
  211. bind-to-key end-of-file ^[[220z
  212. bind-to-key next-page ^[[222z
  213. bind-to-key next-page ^[[6~
  214.  
  215. # KP_0 (engraved "Ins")
  216. bind-to-key newline-and-backup ^[[2~
  217. # KP_Point (engraved "Del")
  218. bind-macro-to-key kill-line ^[[249z
  219. # KP_Enter
  220. bind-to-key shell ^[[250z
  221. # KP_Add
  222. bind-to-key scroll-up ^[[253z
  223. # KP_Subtract
  224. bind-to-key scroll-down ^[[254z
  225.  
  226. set scroll-bar on
  227.