Debian Codegraph @

doc/jove.rc.xterm-256color

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