Mercurial > emacs
annotate lisp/term/lk201.el @ 59728:b694c88295ed
*** empty log message ***
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Tue, 25 Jan 2005 03:36:37 +0000 |
parents | 695cf19ef79e |
children | ed09a89e2b25 375f2633d815 |
rev | line source |
---|---|
47726
33d53d287ee4
Add "no-byte-compile: t" in first line.
Juanma Barranquero <lekktu@gmail.com>
parents:
38414
diff
changeset
|
1 ;; -*- no-byte-compile: t -*- |
3285
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
2 ;; Define function key sequences for DEC terminals. |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
3 |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
4 ;; Termcap or terminfo should set these. |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
5 ;; (define-key function-key-map "\e[A" [up]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
6 ;; (define-key function-key-map "\e[B" [down]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
7 ;; (define-key function-key-map "\e[C" [right]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
8 ;; (define-key function-key-map "\e[D" [left]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
9 |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
10 (define-key function-key-map "\e[1~" [find]) |
5581
92a0425caeea
(function-key-map): Change insertchar and deletechar to insert and delete.
Richard M. Stallman <rms@gnu.org>
parents:
5577
diff
changeset
|
11 (define-key function-key-map "\e[2~" [insert]) |
92a0425caeea
(function-key-map): Change insertchar and deletechar to insert and delete.
Richard M. Stallman <rms@gnu.org>
parents:
5577
diff
changeset
|
12 (define-key function-key-map "\e[3~" [delete]) |
3285
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
13 (define-key function-key-map "\e[4~" [select]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
14 (define-key function-key-map "\e[5~" [prior]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
15 (define-key function-key-map "\e[6~" [next]) |
5577 | 16 (define-key function-key-map "\e[11~" [f1]) |
17 (define-key function-key-map "\e[12~" [f2]) | |
18 (define-key function-key-map "\e[13~" [f3]) | |
19 (define-key function-key-map "\e[14~" [f4]) | |
20 (define-key function-key-map "\e[15~" [f5]) | |
3251 | 21 (define-key function-key-map "\e[17~" [f6]) |
22 (define-key function-key-map "\e[18~" [f7]) | |
23 (define-key function-key-map "\e[19~" [f8]) | |
24 (define-key function-key-map "\e[20~" [f9]) | |
25 (define-key function-key-map "\e[21~" [f10]) | |
3285
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
26 ;; Customarily F11 is used as the ESC key. |
6775
07eb87564783
(function-key-map): Use f11, not \e.
Richard M. Stallman <rms@gnu.org>
parents:
6760
diff
changeset
|
27 ;; The file that includes this one, takes care of that. |
07eb87564783
(function-key-map): Use f11, not \e.
Richard M. Stallman <rms@gnu.org>
parents:
6760
diff
changeset
|
28 (define-key function-key-map "\e[23~" [f11]) |
3251 | 29 (define-key function-key-map "\e[24~" [f12]) |
30 (define-key function-key-map "\e[25~" [f13]) | |
31 (define-key function-key-map "\e[26~" [f14]) | |
32 (define-key function-key-map "\e[28~" [help]) | |
3285
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
33 (define-key function-key-map "\e[29~" [menu]) |
3251 | 34 (define-key function-key-map "\e[31~" [f17]) |
35 (define-key function-key-map "\e[32~" [f18]) | |
36 (define-key function-key-map "\e[33~" [f19]) | |
37 (define-key function-key-map "\e[34~" [f20]) | |
3285
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
38 |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
39 ;; Termcap or terminfo should set these. |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
40 ;; (define-key function-key-map "\eOA" [up]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
41 ;; (define-key function-key-map "\eOB" [down]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
42 ;; (define-key function-key-map "\eOC" [right]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
43 ;; (define-key function-key-map "\eOD" [left]) |
4206
9d2ef5f2ff83
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3285
diff
changeset
|
44 |
9d2ef5f2ff83
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3285
diff
changeset
|
45 ;; Termcap or terminfo should set these, but doesn't properly. |
9d2ef5f2ff83
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3285
diff
changeset
|
46 ;; Termcap sets these to k1-k4, which get mapped to f1-f4 in term.c |
9d2ef5f2ff83
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3285
diff
changeset
|
47 (define-key function-key-map "\eOP" [kp-f1]) |
9d2ef5f2ff83
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3285
diff
changeset
|
48 (define-key function-key-map "\eOQ" [kp-f2]) |
9d2ef5f2ff83
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3285
diff
changeset
|
49 (define-key function-key-map "\eOR" [kp-f3]) |
9d2ef5f2ff83
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3285
diff
changeset
|
50 (define-key function-key-map "\eOS" [kp-f4]) |
3285
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
51 |
6760
e73caf9b9ad5
Support kp-tab, kp-multiply, kp-add, kp-divide.
Richard M. Stallman <rms@gnu.org>
parents:
5581
diff
changeset
|
52 (define-key function-key-map "\eOI" [kp-tab]) |
e73caf9b9ad5
Support kp-tab, kp-multiply, kp-add, kp-divide.
Richard M. Stallman <rms@gnu.org>
parents:
5581
diff
changeset
|
53 (define-key function-key-map "\eOj" [kp-multiply]) |
e73caf9b9ad5
Support kp-tab, kp-multiply, kp-add, kp-divide.
Richard M. Stallman <rms@gnu.org>
parents:
5581
diff
changeset
|
54 (define-key function-key-map "\eOk" [kp-add]) |
e73caf9b9ad5
Support kp-tab, kp-multiply, kp-add, kp-divide.
Richard M. Stallman <rms@gnu.org>
parents:
5581
diff
changeset
|
55 (define-key function-key-map "\eOl" [kp-separator]) |
3285
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
56 (define-key function-key-map "\eOM" [kp-enter]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
57 (define-key function-key-map "\eOm" [kp-subtract]) |
5577 | 58 (define-key function-key-map "\eOn" [kp-decimal]) |
6760
e73caf9b9ad5
Support kp-tab, kp-multiply, kp-add, kp-divide.
Richard M. Stallman <rms@gnu.org>
parents:
5581
diff
changeset
|
59 (define-key function-key-map "\eOo" [kp-divide]) |
3285
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
60 (define-key function-key-map "\eOp" [kp-0]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
61 (define-key function-key-map "\eOq" [kp-1]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
62 (define-key function-key-map "\eOr" [kp-2]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
63 (define-key function-key-map "\eOs" [kp-3]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
64 (define-key function-key-map "\eOt" [kp-4]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
65 (define-key function-key-map "\eOu" [kp-5]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
66 (define-key function-key-map "\eOv" [kp-6]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
67 (define-key function-key-map "\eOw" [kp-7]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
68 (define-key function-key-map "\eOx" [kp-8]) |
46b067e1652d
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
3251
diff
changeset
|
69 (define-key function-key-map "\eOy" [kp-9]) |
38414
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
6775
diff
changeset
|
70 |
52401 | 71 ;;; arch-tag: 7ffb4444-6a23-43e1-b457-43cf4f673c0d |
38414
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
6775
diff
changeset
|
72 ;;; lk201.el ends here |