Debian Codegraph @

doc/jove.rc.sun

raw
1 # xjove (and JoveTool) mouse bindings:
2 #
3 # button 1:
4 # down, double-click down, triple-click down, drag while 1 down:
5 # xj-mouse-point [set point to mouse location]
6 # up (any number of clicks):
7 # xj-mouse-yank [set point to mouse location; yank if CTRL held]
8 # button 2:
9 # down, drag while 2 down:
10 # xj-mouse-mark [set point and mark to mouse location]
11 # double-click down:
12 # xj-mouse-word [undo preceding mouse-copy-cut; set mark to end of
13 # word designated by mouse; set point to start of word]
14 # triple-click down:
15 # xj-mouse-word [undo preceding mouse-copy-cut; set mark to end of
16 # line designated by mouse; set point to start of line]
17 # up (any number of clicks):
18 # xj-mouse-copy-cut [copy region if CTRL pressed;
19 # delete region if CTRL+SHIFT pressed]
20 # button 3:
21 # not available
22
23 bind-to-key xj-mouse-point ^Xm0
24 bind-to-key xj-mouse-point ^Xm1
25 bind-to-key xj-mouse-point ^Xm2
26 bind-to-key xj-mouse-yank ^Xm3
27 bind-to-key xj-mouse-point ^Xm4
28 bind-to-key xj-mouse-mark ^Xm5
29 bind-to-key xj-mouse-word ^Xm6
30 bind-to-key xj-mouse-line ^Xm7
31 bind-to-key xj-mouse-copy-cut ^Xm8
32 bind-to-key xj-mouse-point ^Xm9
33
34 # The following bindings are designed for the Sun Type 4 Keyboard.
35
36 # define macro to display TERMinal-specific keychart file
37 define-macro keychart ^[xpushlibd^M^U^[xshell-command-with-typeout cat keychart.$TERM^M^[xpopd^M
38
39 # For the Type 5 keyboard it so happens that all the extra keys, under the
40 # default xmodmap, are simply duplicates of other keys on the keyboard (except
41 # that they still have their effects even when Num Lock is on). So my binding
42 # still works sensibly, except for the missing KP_Subtract key.
43
44 # Note that the files jove.rc.sun and jove.rc.sun-cmd should be identical,
45 # and preferably hard-linked together.
46
47 # The following general principles were followed in designing this binding:
48 # 1. Groupings of keys that are found in bindings for other terminals
49 # should be adhered to so far as possible.
50 # 2. Keys which do related things should be close together.
51 # 3. Keys which do certain things under Sun editors (notably textedit)
52 # should do the same (or similar) things under jove.
53 # 4. Keys which have suggestive engravings on them should do what the
54 # engravings suggest.
55 # Thus KP_0 ("Ins") and KP_Point ("Del") are used to insert and delete
56 # lines. Since 9 of the 15 R keys were already associated with cursor
57 # movement or scrolling, it seemed right to make the remaining 6 do
58 # likewise.
59
60 # However, having said all that, these bindings are only illustrative
61 # suggestions, and local sysadmins may well wish to change them.
62
63 # arrow keys, using their xjove bindings
64 bind-to-key backward-character ^[[217z
65 bind-to-key previous-line ^[[215z
66 bind-to-key next-line ^[[221z
67 bind-to-key forward-character ^[[219z
68
69 # L keys
70 bind-to-key over-write-mode ^[[192z
71 bind-to-key auto-fill-mode ^[[193z
72 bind-to-key set-mark ^[[194z
73 bind-to-key exchange-point-and-mark ^[[195z
74 bind-to-key copy-region ^[[197z
75 bind-to-key yank ^[[199z
76 bind-to-key search-forward ^[[200z
77 bind-to-key search-reverse ^[^[[200z
78 bind-to-key kill-region ^[[201z
79
80 # Help key (xjove only)
81 bind-macro-to-key keychart ^[[202z
82
83 # F keys
84 bind-to-key execute-named-command ^[[224z
85 bind-to-key split-current-window ^[[225z
86 bind-to-key next-window ^[[226z
87 bind-to-key delete-other-window ^[[227z
88 bind-to-key delete-current-window ^[[228z
89 bind-to-key grow-window ^[[229z
90 bind-to-key spell-buffer ^[[230z
91 bind-to-key fill-comment ^[[231z
92 bind-to-key fill-paragraph ^[[232z
93 bind-to-key list-buffers ^[[233z
94 bind-to-key select-buffer ^[[234z
95 bind-to-key find-file ^[[235z
96
97 # On the Type 4 keyboard the Backspace key is right below Delete and, in the
98 # default Jove bindings these both do delete-previous-character. They would
99 # make a fine pair with one to delete forward and one to delete backward.
100 # For historical reasons, we leave them both as delete backward, but
101 # recommend that the adventurous (or IBM PC acculturated) enable these.
102 # bind-to-key delete-next-character ^?
103 # bind-to-key kill-next-word ^[^?
104
105 # R keys (these are all associated with cursor movement or scrolling)
106 bind-to-key beginning-of-line ^[[208z
107 bind-to-key backward-list ^[[209z
108 bind-to-key backward-word ^[[210z
109 bind-to-key end-of-line ^[[211z
110 bind-to-key forward-list ^[[212z
111 bind-to-key forward-word ^[[213z
112 bind-to-key beginning-of-file ^[[214z
113 bind-to-key previous-page ^[[216z
114 # This moves the cursor to the start of the next line.
115 define-macro newline-and-beginning ^A^N
116 bind-macro-to-key newline-and-beginning ^[[218z
117 bind-to-key end-of-file ^[[220z
118 bind-to-key next-page ^[[222z
119
120 # The following are only available with xjove.
121 # KP_0 (engraved "Ins")
122 bind-to-key newline-and-backup ^[[247z
123 # KP_Point (engraved "Del")
124 bind-macro-to-key kill-line ^[[249z
125 # KP_Enter
126 bind-to-key shell ^[[250z
127 # KP_Add
128 bind-to-key scroll-up ^[[253z
129 # KP_Subtract
130 bind-to-key scroll-down ^[[254z
131
132 # It is presumed Sun users will normally use xjove. Hence:
133 set scroll-bar on