23367
|
1 ;; term/iris-ansi.el --- configure Emacs for SGI xwsh and winterm apps
|
|
2
|
|
3 ;; Copyright (C) 1997 Free Software Foundation, Inc.
|
|
4
|
|
5 ;; Author: Dan Nicolaescu <dann@ics.uci.edu>
|
|
6
|
|
7 ;; This file is part of GNU Emacs.
|
|
8
|
|
9 ;; GNU Emacs is free software; you can redistribute it and/or modify
|
|
10 ;; it under the terms of the GNU General Public License as published by
|
|
11 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
12 ;; any later version.
|
|
13
|
|
14 ;; GNU Emacs is distributed in the hope that it will be useful,
|
|
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17 ;; GNU General Public License for more details.
|
|
18
|
|
19 ;; You should have received a copy of the GNU General Public License
|
|
20 ;; along with GNU Emacs; see the file COPYING. If not, write to the
|
|
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
22 ;; Boston, MA 02111-1307, USA.
|
|
23
|
|
24 (define-key function-key-map "\e[120q" [S-escape])
|
|
25 (define-key function-key-map "\e[121q" [C-escape])
|
|
26
|
|
27 (define-key function-key-map "\e[001q" [f1])
|
|
28 (define-key function-key-map "\e[013q" [S-f1])
|
|
29 (define-key function-key-map "\e[025q" [C-f1])
|
|
30
|
|
31
|
|
32 (define-key function-key-map "\e[002q" [f2])
|
|
33 (define-key function-key-map "\e[014q" [S-f2])
|
|
34 (define-key function-key-map "\e[026q" [C-f2])
|
|
35 (define-key function-key-map "\e[038q" [M-f2])
|
|
36
|
|
37 (define-key function-key-map "\e[003q" [f3])
|
|
38 (define-key function-key-map "\e[015q" [S-f3])
|
|
39 (define-key function-key-map "\e[027q" [C-f3])
|
|
40
|
|
41
|
|
42 (define-key function-key-map "\e[004q" [f4])
|
|
43 (define-key function-key-map "\e[016q" [S-f4])
|
|
44 (define-key function-key-map "\e[028q" [C-f4])
|
|
45
|
|
46
|
|
47 (define-key function-key-map "\e[005q" [f5])
|
|
48 (define-key function-key-map "\e[017q" [S-f5])
|
|
49 (define-key function-key-map "\e[029q" [C-f5])
|
|
50
|
|
51
|
|
52 (define-key function-key-map "\e[006q" [f6])
|
|
53 (define-key function-key-map "\e[018q" [S-f6])
|
|
54 (define-key function-key-map "\e[030q" [C-f6])
|
|
55
|
|
56
|
|
57 (define-key function-key-map "\e[007q" [f7])
|
|
58 (define-key function-key-map "\e[019q" [S-f7])
|
|
59 (define-key function-key-map "\e[031q" [C-f7])
|
|
60
|
|
61
|
|
62 (define-key function-key-map "\e[008q" [f8])
|
|
63 (define-key function-key-map "\e[020q" [S-f8])
|
|
64 (define-key function-key-map "\e[032q" [C-f8])
|
|
65
|
|
66
|
|
67 (define-key function-key-map "\e[009q" [f9])
|
|
68 (define-key function-key-map "\e[021q" [S-f9])
|
|
69 (define-key function-key-map "\e[033q" [C-f9])
|
|
70
|
|
71
|
|
72 (define-key function-key-map "\e[010q" [f10])
|
|
73 (define-key function-key-map "\e[022q" [S-f10])
|
|
74 (define-key function-key-map "\e[034q" [C-f10])
|
|
75
|
|
76
|
|
77 (define-key function-key-map "\e[011q" [f11])
|
|
78 (define-key function-key-map "\e[023q" [S-f11])
|
|
79 (define-key function-key-map "\e[035q" [C-f11])
|
|
80 (define-key function-key-map "\e[047q" [M-f11])
|
|
81
|
|
82 (define-key function-key-map "\e[012q" [f12])
|
|
83 (define-key function-key-map "\e[024q" [S-f12])
|
|
84 (define-key function-key-map "\e[036q" [C-f12])
|
|
85 (define-key function-key-map "\e[048q" [M-f12])
|
|
86
|
|
87
|
|
88 (define-key function-key-map "\e[057q" [C-`])
|
|
89 (define-key function-key-map "\e[115q" [M-`])
|
|
90
|
|
91 (define-key function-key-map "\e[049q" [?\C-1])
|
|
92 (define-key function-key-map "\e[058q" [?\M-1])
|
|
93
|
|
94
|
|
95 (define-key function-key-map "\e[059q" [?\M-2])
|
|
96
|
|
97 (define-key function-key-map "\e[050q" [?\C-3])
|
|
98 (define-key function-key-map "\e[060q" [?\M-3])
|
|
99
|
|
100 (define-key function-key-map "\e[051q" [?\C-4])
|
|
101 (define-key function-key-map "\e[061q" [?\M-4])
|
|
102
|
|
103 (define-key function-key-map "\e[052q" [?\C-5])
|
|
104 (define-key function-key-map "\e[062q" [?\M-5])
|
|
105
|
|
106
|
|
107 (define-key function-key-map "\e[063q" [?\M-6])
|
|
108
|
|
109 (define-key function-key-map "\e[053q" [?\C-7])
|
|
110 (define-key function-key-map "\e[064q" [?\M-7])
|
|
111
|
|
112 (define-key function-key-map "\e[054q" [?\C-8])
|
|
113 (define-key function-key-map "\e[065q" [?\M-8])
|
|
114
|
|
115 (define-key function-key-map "\e[055q" [?\C-9])
|
|
116 (define-key function-key-map "\e[066q" [?\M-9])
|
|
117
|
|
118 (define-key function-key-map "\e[056q" [?\C-0])
|
|
119 (define-key function-key-map "\e[067q" [?\M-0])
|
|
120
|
|
121 (define-key function-key-map "\e[068q" [?\M--])
|
|
122
|
|
123 (define-key function-key-map "\e[069q" [?\C-=])
|
|
124 (define-key function-key-map "\e[070q" [?\M-=])
|
|
125
|
|
126 ;; I don't know what to do with those.
|
|
127 ;(define-key function-key-map "^H" [<del>])
|
|
128 ;(define-key function-key-map "^H" [S-<del>])
|
|
129 ;(define-key function-key-map "\177" [C-<del>])
|
|
130 ;(define-key function-key-map "\e[071q" [M-<del>])
|
|
131
|
|
132 (define-key function-key-map "\e[Z" [?\S-\t])
|
|
133 (define-key function-key-map "\e[072q" [?\C-\t])
|
|
134 ;; This only works if you remove the M-TAB keybing from the system.4Dwmrc
|
|
135 ;; our your ~/.4Dwmrc, if you use the 4Dwm window manager.
|
|
136 (define-key function-key-map "\e[073q" [?\M-\t])
|
|
137
|
|
138 (define-key function-key-map "\e[074q" [?\M-q])
|
|
139
|
|
140 (define-key function-key-map "\e[075q" [?\M-w])
|
|
141
|
|
142 (define-key function-key-map "\e[076q" [?\M-e])
|
|
143
|
|
144 (define-key function-key-map "\e[077q" [?\M-r])
|
|
145
|
|
146 (define-key function-key-map "\e[078q" [?\M-t])
|
|
147
|
|
148 (define-key function-key-map "\e[079q" [?\M-y])
|
|
149
|
|
150 (define-key function-key-map "\e[080q" [?\M-u])
|
|
151
|
|
152 (define-key function-key-map "\e[081q" [?\M-i])
|
|
153
|
|
154 (define-key function-key-map "\e[082q" [?\M-o])
|
|
155
|
|
156 (define-key function-key-map "\e[083q" [?\M-p])
|
|
157
|
|
158 (define-key function-key-map "\e[084q" [?\M-\[])
|
|
159
|
|
160 (define-key function-key-map "\e[085q" [?\M-\]])
|
|
161
|
|
162 (define-key function-key-map "\e[086q" [?\M-\\])
|
|
163
|
|
164 (define-key function-key-map "\e[087q" [?\M-a])
|
|
165
|
|
166 (define-key function-key-map "\e[088q" [?\M-s])
|
|
167
|
|
168 (define-key function-key-map "\e[089q" [?\M-d])
|
|
169
|
|
170 (define-key function-key-map "\e[090q" [?\M-f])
|
|
171
|
|
172 (define-key function-key-map "\e[091q" [?\M-g])
|
|
173
|
|
174 (define-key function-key-map "\e[092q" [?\M-h])
|
|
175
|
|
176 (define-key function-key-map "\e[093q" [?\M-j])
|
|
177
|
|
178 (define-key function-key-map "\e[094q" [?\M-k])
|
|
179
|
|
180 (define-key function-key-map "\e[095q" [?\M-l])
|
|
181
|
|
182 (define-key function-key-map "\e[096q" [?\C-\;])
|
|
183 (define-key function-key-map "\e[097q" [?\M-:]) ;; we are cheating
|
|
184 ;; here, this is realy
|
|
185 ;; M-;, but M-:
|
|
186 ;; generates the same
|
|
187 ;; string and is more
|
|
188 ;; usefull.
|
|
189
|
|
190 (define-key function-key-map "\e[098q" [?\C-'])
|
|
191 (define-key function-key-map "\e[099q" [?\M-'])
|
|
192
|
|
193 (define-key function-key-map "\e[100q" [?\M-\n])
|
|
194
|
|
195 (define-key function-key-map "\e[101q" [?\M-z])
|
|
196
|
|
197 (define-key function-key-map "\e[102q" [?\M-x])
|
|
198
|
|
199 (define-key function-key-map "\e[103q" [?\M-c])
|
|
200
|
|
201 (define-key function-key-map "\e[104q" [?\M-v])
|
|
202
|
|
203 (define-key function-key-map "\e[105q" [?\M-b])
|
|
204
|
|
205 (define-key function-key-map "\e[106q" [M-n])
|
|
206
|
|
207 (define-key function-key-map "\e[107q" [M-m])
|
|
208
|
|
209 (define-key function-key-map "\e[108q" [?\C-,])
|
|
210 (define-key function-key-map "\e[109q" [?\M-,])
|
|
211
|
|
212 (define-key function-key-map "\e[110q" [?\C-.])
|
|
213 (define-key function-key-map "\e[111q" [?\M-.])
|
|
214
|
|
215 (define-key function-key-map "\e[112q" [?\C-/])
|
|
216 (define-key function-key-map "\e[113q" [?\M-/])
|
|
217
|
|
218 (define-key function-key-map "\e[139q" [insert])
|
|
219 (define-key function-key-map "\e[139q" [S-insert])
|
|
220 (define-key function-key-map "\e[140q" [C-insert])
|
|
221 (define-key function-key-map "\e[141q" [M-insert])
|
|
222
|
|
223 (define-key function-key-map "\e[H" [home])
|
|
224 (define-key function-key-map "\e[143q" [S-home])
|
|
225 (define-key function-key-map "\e[144q" [C-home])
|
|
226
|
|
227
|
|
228 (define-key function-key-map "\e[150q" [prior])
|
|
229 (define-key function-key-map "\e[151q" [S-prior]) ;; those don't seem
|
|
230 ;; to generate
|
|
231 ;; anything
|
|
232 (define-key function-key-map "\e[152q" [C-prior])
|
|
233
|
|
234
|
|
235 ;; (define-key function-key-map "^?" [delete]) ?? something else seems to take care of this.
|
|
236 (define-key function-key-map "\e[P" [S-delete])
|
|
237 (define-key function-key-map "\e[142q" [C-delete])
|
|
238 (define-key function-key-map "\e[M" [M-delete])
|
|
239
|
|
240 (define-key function-key-map "\e[146q" [end])
|
|
241 (define-key function-key-map "\e[147q" [S-end]) ;; those don't seem to
|
|
242 ;; generate anything
|
|
243 (define-key function-key-map "\e[148q" [C-end])
|
|
244
|
|
245 (define-key function-key-map "\e[154q" [next])
|
|
246 (define-key function-key-map "\e[155q" [S-next])
|
|
247 (define-key function-key-map "\e[156q" [C-next])
|
|
248
|
|
249
|
|
250 (define-key function-key-map "\e[161q" [S-up])
|
|
251 (define-key function-key-map "\e[162q" [C-up])
|
|
252 (define-key function-key-map "\e[163q" [M-up])
|
|
253
|
|
254 (define-key function-key-map "\e[158q" [S-left])
|
|
255 (define-key function-key-map "\e[159q" [C-left])
|
|
256 (define-key function-key-map "\e[160q" [M-left])
|
|
257
|
|
258 (define-key function-key-map "\e[164q" [S-down])
|
|
259 (define-key function-key-map "\e[165q" [C-down])
|
|
260 (define-key function-key-map "\e[166q" [M-down])
|
|
261
|
|
262 (define-key function-key-map "\e[167q" [S-right])
|
|
263 (define-key function-key-map "\e[168q" [C-right])
|
|
264 (define-key function-key-map "\e[169q" [M-right])
|
|
265
|
|
266 ;; Keypad functions, most of those are untested.
|
|
267 (define-key function-key-map "\e[179q" [?\C-/])
|
|
268 (define-key function-key-map "\e[180q" [?\M-/])
|
|
269
|
|
270 (define-key function-key-map "\e[187q" [?\C-*])
|
|
271 (define-key function-key-map "\e[188q" [?\M-*])
|
|
272
|
|
273 (define-key function-key-map "\e[198q" [?\C--])
|
|
274 (define-key function-key-map "\e[199q" [?\M--])
|
|
275
|
|
276 ;; Something else takes care of home, up, prior, down, left, right, next
|
|
277 ;(define-key function-key-map "\e[H" [home])
|
|
278 (define-key function-key-map "\e[172q" [C-home])
|
|
279
|
|
280 ;(define-key function-key-map "\e[A" [up])
|
|
281 (define-key function-key-map "\e[182q" [C-up])
|
|
282
|
|
283
|
|
284 ;(define-key function-key-map "\e[150q" [prior])
|
|
285 (define-key function-key-map "\e[190q" [C-prior])
|
|
286
|
|
287
|
|
288 (define-key function-key-map "\e[200q" [?\C-+])
|
|
289 (define-key function-key-map "\e[201q" [?\M-+])
|
|
290
|
|
291 ;(define-key function-key-map "\e[D" [left])
|
|
292 (define-key function-key-map "\e[174q" [C-left])
|
|
293
|
|
294
|
|
295 (define-key function-key-map "\e[000q" [begin])
|
|
296 (define-key function-key-map "\e[184q" [C-begin])
|
|
297
|
|
298
|
|
299 ;(define-key function-key-map "\e[C" [right])
|
|
300 (define-key function-key-map "\e[192q" [C-right])
|
|
301
|
|
302 ;(define-key function-key-map "\e[146q" [end])
|
|
303 (define-key function-key-map "\e[176q" [C-end])
|
|
304
|
|
305 ;(define-key function-key-map "\e[B" [down])
|
|
306 (define-key function-key-map "\e[186q" [C-down])
|
|
307
|
|
308 ;(define-key function-key-map "\e[154q" [next])
|
|
309 (define-key function-key-map "\e[194q" [C-next])
|
|
310
|
|
311
|
|
312 (define-key function-key-map "\e[100q" [M-enter])
|
|
313
|
|
314 (define-key function-key-map "\e[139q" [insert])
|
|
315 (define-key function-key-map "\e[178q" [C-inset])
|
|
316
|
|
317 (define-key function-key-map "\e[P" [delete])
|
|
318 (define-key function-key-map "\e[196q" [C-delete])
|
|
319 (define-key function-key-map "\e[197q" [M-delete])
|
|
320
|
|
321 ;;; term/iris-ansi.el ends here
|