Mercurial > emacs
annotate lisp/term/iris-ansi.el @ 63711:34f124e4af5e
*** empty log message ***
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 23 Jun 2005 17:30:56 +0000 |
parents | 695cf19ef79e |
children | a8fa7c632ee4 8e357d90cc9f 375f2633d815 |
rev | line source |
---|---|
47726
33d53d287ee4
Add "no-byte-compile: t" in first line.
Juanma Barranquero <lekktu@gmail.com>
parents:
38436
diff
changeset
|
1 ;;; iris-ansi.el --- configure Emacs for SGI xwsh and winterm apps -*- no-byte-compile: t -*- |
23367 | 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 | |
38436
b174db545cfd
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
23367
diff
changeset
|
24 ;;; Commentary: |
b174db545cfd
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
23367
diff
changeset
|
25 |
b174db545cfd
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
23367
diff
changeset
|
26 ;;; Code: |
b174db545cfd
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
23367
diff
changeset
|
27 |
23367 | 28 (define-key function-key-map "\e[120q" [S-escape]) |
29 (define-key function-key-map "\e[121q" [C-escape]) | |
30 | |
31 (define-key function-key-map "\e[001q" [f1]) | |
32 (define-key function-key-map "\e[013q" [S-f1]) | |
33 (define-key function-key-map "\e[025q" [C-f1]) | |
34 | |
35 | |
36 (define-key function-key-map "\e[002q" [f2]) | |
37 (define-key function-key-map "\e[014q" [S-f2]) | |
38 (define-key function-key-map "\e[026q" [C-f2]) | |
39 (define-key function-key-map "\e[038q" [M-f2]) | |
40 | |
41 (define-key function-key-map "\e[003q" [f3]) | |
42 (define-key function-key-map "\e[015q" [S-f3]) | |
43 (define-key function-key-map "\e[027q" [C-f3]) | |
44 | |
45 | |
46 (define-key function-key-map "\e[004q" [f4]) | |
47 (define-key function-key-map "\e[016q" [S-f4]) | |
48 (define-key function-key-map "\e[028q" [C-f4]) | |
49 | |
50 | |
51 (define-key function-key-map "\e[005q" [f5]) | |
52 (define-key function-key-map "\e[017q" [S-f5]) | |
53 (define-key function-key-map "\e[029q" [C-f5]) | |
54 | |
55 | |
56 (define-key function-key-map "\e[006q" [f6]) | |
57 (define-key function-key-map "\e[018q" [S-f6]) | |
58 (define-key function-key-map "\e[030q" [C-f6]) | |
59 | |
60 | |
61 (define-key function-key-map "\e[007q" [f7]) | |
62 (define-key function-key-map "\e[019q" [S-f7]) | |
63 (define-key function-key-map "\e[031q" [C-f7]) | |
64 | |
65 | |
66 (define-key function-key-map "\e[008q" [f8]) | |
67 (define-key function-key-map "\e[020q" [S-f8]) | |
68 (define-key function-key-map "\e[032q" [C-f8]) | |
69 | |
70 | |
71 (define-key function-key-map "\e[009q" [f9]) | |
72 (define-key function-key-map "\e[021q" [S-f9]) | |
73 (define-key function-key-map "\e[033q" [C-f9]) | |
74 | |
75 | |
76 (define-key function-key-map "\e[010q" [f10]) | |
77 (define-key function-key-map "\e[022q" [S-f10]) | |
78 (define-key function-key-map "\e[034q" [C-f10]) | |
79 | |
80 | |
81 (define-key function-key-map "\e[011q" [f11]) | |
82 (define-key function-key-map "\e[023q" [S-f11]) | |
83 (define-key function-key-map "\e[035q" [C-f11]) | |
84 (define-key function-key-map "\e[047q" [M-f11]) | |
85 | |
86 (define-key function-key-map "\e[012q" [f12]) | |
87 (define-key function-key-map "\e[024q" [S-f12]) | |
88 (define-key function-key-map "\e[036q" [C-f12]) | |
89 (define-key function-key-map "\e[048q" [M-f12]) | |
90 | |
91 | |
92 (define-key function-key-map "\e[057q" [C-`]) | |
93 (define-key function-key-map "\e[115q" [M-`]) | |
94 | |
95 (define-key function-key-map "\e[049q" [?\C-1]) | |
96 (define-key function-key-map "\e[058q" [?\M-1]) | |
97 | |
98 | |
99 (define-key function-key-map "\e[059q" [?\M-2]) | |
100 | |
101 (define-key function-key-map "\e[050q" [?\C-3]) | |
102 (define-key function-key-map "\e[060q" [?\M-3]) | |
103 | |
104 (define-key function-key-map "\e[051q" [?\C-4]) | |
105 (define-key function-key-map "\e[061q" [?\M-4]) | |
106 | |
107 (define-key function-key-map "\e[052q" [?\C-5]) | |
108 (define-key function-key-map "\e[062q" [?\M-5]) | |
109 | |
110 | |
111 (define-key function-key-map "\e[063q" [?\M-6]) | |
112 | |
113 (define-key function-key-map "\e[053q" [?\C-7]) | |
114 (define-key function-key-map "\e[064q" [?\M-7]) | |
115 | |
116 (define-key function-key-map "\e[054q" [?\C-8]) | |
117 (define-key function-key-map "\e[065q" [?\M-8]) | |
118 | |
119 (define-key function-key-map "\e[055q" [?\C-9]) | |
120 (define-key function-key-map "\e[066q" [?\M-9]) | |
121 | |
122 (define-key function-key-map "\e[056q" [?\C-0]) | |
123 (define-key function-key-map "\e[067q" [?\M-0]) | |
124 | |
125 (define-key function-key-map "\e[068q" [?\M--]) | |
126 | |
127 (define-key function-key-map "\e[069q" [?\C-=]) | |
128 (define-key function-key-map "\e[070q" [?\M-=]) | |
129 | |
130 ;; I don't know what to do with those. | |
131 ;(define-key function-key-map "^H" [<del>]) | |
132 ;(define-key function-key-map "^H" [S-<del>]) | |
133 ;(define-key function-key-map "\177" [C-<del>]) | |
134 ;(define-key function-key-map "\e[071q" [M-<del>]) | |
135 | |
136 (define-key function-key-map "\e[Z" [?\S-\t]) | |
137 (define-key function-key-map "\e[072q" [?\C-\t]) | |
138 ;; This only works if you remove the M-TAB keybing from the system.4Dwmrc | |
139 ;; our your ~/.4Dwmrc, if you use the 4Dwm window manager. | |
49599
5ade352e8d1c
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
47726
diff
changeset
|
140 (define-key function-key-map "\e[073q" [?\M-\t]) |
23367 | 141 |
142 (define-key function-key-map "\e[074q" [?\M-q]) | |
143 | |
144 (define-key function-key-map "\e[075q" [?\M-w]) | |
145 | |
146 (define-key function-key-map "\e[076q" [?\M-e]) | |
147 | |
148 (define-key function-key-map "\e[077q" [?\M-r]) | |
149 | |
150 (define-key function-key-map "\e[078q" [?\M-t]) | |
151 | |
152 (define-key function-key-map "\e[079q" [?\M-y]) | |
153 | |
154 (define-key function-key-map "\e[080q" [?\M-u]) | |
155 | |
156 (define-key function-key-map "\e[081q" [?\M-i]) | |
157 | |
158 (define-key function-key-map "\e[082q" [?\M-o]) | |
159 | |
160 (define-key function-key-map "\e[083q" [?\M-p]) | |
161 | |
162 (define-key function-key-map "\e[084q" [?\M-\[]) | |
163 | |
164 (define-key function-key-map "\e[085q" [?\M-\]]) | |
165 | |
166 (define-key function-key-map "\e[086q" [?\M-\\]) | |
167 | |
168 (define-key function-key-map "\e[087q" [?\M-a]) | |
169 | |
170 (define-key function-key-map "\e[088q" [?\M-s]) | |
171 | |
172 (define-key function-key-map "\e[089q" [?\M-d]) | |
173 | |
174 (define-key function-key-map "\e[090q" [?\M-f]) | |
175 | |
176 (define-key function-key-map "\e[091q" [?\M-g]) | |
177 | |
178 (define-key function-key-map "\e[092q" [?\M-h]) | |
179 | |
180 (define-key function-key-map "\e[093q" [?\M-j]) | |
181 | |
182 (define-key function-key-map "\e[094q" [?\M-k]) | |
183 | |
184 (define-key function-key-map "\e[095q" [?\M-l]) | |
185 | |
186 (define-key function-key-map "\e[096q" [?\C-\;]) | |
187 (define-key function-key-map "\e[097q" [?\M-:]) ;; we are cheating | |
188 ;; here, this is realy | |
189 ;; M-;, but M-: | |
190 ;; generates the same | |
191 ;; string and is more | |
192 ;; usefull. | |
193 | |
194 (define-key function-key-map "\e[098q" [?\C-']) | |
195 (define-key function-key-map "\e[099q" [?\M-']) | |
196 | |
197 (define-key function-key-map "\e[100q" [?\M-\n]) | |
198 | |
199 (define-key function-key-map "\e[101q" [?\M-z]) | |
200 | |
201 (define-key function-key-map "\e[102q" [?\M-x]) | |
202 | |
203 (define-key function-key-map "\e[103q" [?\M-c]) | |
204 | |
205 (define-key function-key-map "\e[104q" [?\M-v]) | |
206 | |
207 (define-key function-key-map "\e[105q" [?\M-b]) | |
208 | |
209 (define-key function-key-map "\e[106q" [M-n]) | |
210 | |
211 (define-key function-key-map "\e[107q" [M-m]) | |
212 | |
213 (define-key function-key-map "\e[108q" [?\C-,]) | |
214 (define-key function-key-map "\e[109q" [?\M-,]) | |
215 | |
216 (define-key function-key-map "\e[110q" [?\C-.]) | |
217 (define-key function-key-map "\e[111q" [?\M-.]) | |
218 | |
219 (define-key function-key-map "\e[112q" [?\C-/]) | |
220 (define-key function-key-map "\e[113q" [?\M-/]) | |
221 | |
222 (define-key function-key-map "\e[139q" [insert]) | |
223 (define-key function-key-map "\e[139q" [S-insert]) | |
224 (define-key function-key-map "\e[140q" [C-insert]) | |
225 (define-key function-key-map "\e[141q" [M-insert]) | |
226 | |
227 (define-key function-key-map "\e[H" [home]) | |
228 (define-key function-key-map "\e[143q" [S-home]) | |
229 (define-key function-key-map "\e[144q" [C-home]) | |
230 | |
231 | |
232 (define-key function-key-map "\e[150q" [prior]) | |
233 (define-key function-key-map "\e[151q" [S-prior]) ;; those don't seem | |
234 ;; to generate | |
235 ;; anything | |
236 (define-key function-key-map "\e[152q" [C-prior]) | |
237 | |
238 | |
239 ;; (define-key function-key-map "^?" [delete]) ?? something else seems to take care of this. | |
240 (define-key function-key-map "\e[P" [S-delete]) | |
241 (define-key function-key-map "\e[142q" [C-delete]) | |
242 (define-key function-key-map "\e[M" [M-delete]) | |
243 | |
244 (define-key function-key-map "\e[146q" [end]) | |
245 (define-key function-key-map "\e[147q" [S-end]) ;; those don't seem to | |
246 ;; generate anything | |
247 (define-key function-key-map "\e[148q" [C-end]) | |
248 | |
249 (define-key function-key-map "\e[154q" [next]) | |
250 (define-key function-key-map "\e[155q" [S-next]) | |
251 (define-key function-key-map "\e[156q" [C-next]) | |
252 | |
253 | |
254 (define-key function-key-map "\e[161q" [S-up]) | |
255 (define-key function-key-map "\e[162q" [C-up]) | |
256 (define-key function-key-map "\e[163q" [M-up]) | |
257 | |
258 (define-key function-key-map "\e[158q" [S-left]) | |
259 (define-key function-key-map "\e[159q" [C-left]) | |
260 (define-key function-key-map "\e[160q" [M-left]) | |
261 | |
262 (define-key function-key-map "\e[164q" [S-down]) | |
263 (define-key function-key-map "\e[165q" [C-down]) | |
264 (define-key function-key-map "\e[166q" [M-down]) | |
265 | |
266 (define-key function-key-map "\e[167q" [S-right]) | |
267 (define-key function-key-map "\e[168q" [C-right]) | |
268 (define-key function-key-map "\e[169q" [M-right]) | |
269 | |
270 ;; Keypad functions, most of those are untested. | |
271 (define-key function-key-map "\e[179q" [?\C-/]) | |
272 (define-key function-key-map "\e[180q" [?\M-/]) | |
273 | |
274 (define-key function-key-map "\e[187q" [?\C-*]) | |
275 (define-key function-key-map "\e[188q" [?\M-*]) | |
276 | |
277 (define-key function-key-map "\e[198q" [?\C--]) | |
278 (define-key function-key-map "\e[199q" [?\M--]) | |
279 | |
280 ;; Something else takes care of home, up, prior, down, left, right, next | |
281 ;(define-key function-key-map "\e[H" [home]) | |
282 (define-key function-key-map "\e[172q" [C-home]) | |
283 | |
284 ;(define-key function-key-map "\e[A" [up]) | |
285 (define-key function-key-map "\e[182q" [C-up]) | |
286 | |
287 | |
288 ;(define-key function-key-map "\e[150q" [prior]) | |
289 (define-key function-key-map "\e[190q" [C-prior]) | |
290 | |
291 | |
292 (define-key function-key-map "\e[200q" [?\C-+]) | |
293 (define-key function-key-map "\e[201q" [?\M-+]) | |
294 | |
295 ;(define-key function-key-map "\e[D" [left]) | |
296 (define-key function-key-map "\e[174q" [C-left]) | |
297 | |
298 | |
299 (define-key function-key-map "\e[000q" [begin]) | |
300 (define-key function-key-map "\e[184q" [C-begin]) | |
301 | |
302 | |
303 ;(define-key function-key-map "\e[C" [right]) | |
304 (define-key function-key-map "\e[192q" [C-right]) | |
305 | |
306 ;(define-key function-key-map "\e[146q" [end]) | |
307 (define-key function-key-map "\e[176q" [C-end]) | |
308 | |
309 ;(define-key function-key-map "\e[B" [down]) | |
310 (define-key function-key-map "\e[186q" [C-down]) | |
311 | |
312 ;(define-key function-key-map "\e[154q" [next]) | |
313 (define-key function-key-map "\e[194q" [C-next]) | |
314 | |
315 | |
316 (define-key function-key-map "\e[100q" [M-enter]) | |
317 | |
318 (define-key function-key-map "\e[139q" [insert]) | |
319 (define-key function-key-map "\e[178q" [C-inset]) | |
320 | |
321 (define-key function-key-map "\e[P" [delete]) | |
322 (define-key function-key-map "\e[196q" [C-delete]) | |
323 (define-key function-key-map "\e[197q" [M-delete]) | |
324 | |
52401 | 325 ;;; arch-tag: b1d0e73a-bb7d-47be-9fb2-6fb126469a1b |
38436
b174db545cfd
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
23367
diff
changeset
|
326 ;;; iris-ansi.el ends here |