428
|
1 ;;; lk201.el --- basic editing commands for XEmacs
|
|
2
|
|
3 ;; This file is part of XEmacs.
|
|
4
|
|
5 ;; XEmacs is free software; you can redistribute it and/or modify it
|
|
6 ;; under the terms of the GNU General Public License as published by
|
|
7 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
8 ;; any later version.
|
|
9
|
|
10 ;; XEmacs is distributed in the hope that it will be useful, but
|
|
11 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13 ;; General Public License for more details.
|
|
14
|
|
15 ;; You should have received a copy of the GNU General Public License
|
|
16 ;; along with XEmacs; see the file COPYING. If not, write to the Free
|
|
17 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
18 ;; 02111-1307, USA.
|
|
19
|
622
|
20 ;;; Synched up with: FSF 21.0.103.
|
428
|
21
|
|
22 ;;; Commentary:
|
|
23
|
|
24 ;; Define function key sequences for DEC terminals.
|
|
25
|
|
26 ;; Termcap or terminfo should set these.
|
|
27 ;; (define-key function-key-map "\e[A" [up])
|
|
28 ;; (define-key function-key-map "\e[B" [down])
|
|
29 ;; (define-key function-key-map "\e[C" [right])
|
|
30 ;; (define-key function-key-map "\e[D" [left])
|
|
31
|
|
32 ;;; Code:
|
|
33
|
|
34 (define-key function-key-map "\e[1~" [find])
|
|
35 (define-key function-key-map "\e[2~" [insert])
|
|
36 (define-key function-key-map "\e[3~" [delete])
|
|
37 (define-key function-key-map "\e[4~" [select])
|
|
38 (define-key function-key-map "\e[5~" [prior])
|
|
39 (define-key function-key-map "\e[6~" [next])
|
|
40 (define-key function-key-map "\e[11~" [f1])
|
|
41 (define-key function-key-map "\e[12~" [f2])
|
|
42 (define-key function-key-map "\e[13~" [f3])
|
|
43 (define-key function-key-map "\e[14~" [f4])
|
|
44 (define-key function-key-map "\e[15~" [f5])
|
|
45 (define-key function-key-map "\e[17~" [f6])
|
|
46 (define-key function-key-map "\e[18~" [f7])
|
|
47 (define-key function-key-map "\e[19~" [f8])
|
|
48 (define-key function-key-map "\e[20~" [f9])
|
|
49 (define-key function-key-map "\e[21~" [f10])
|
|
50 ;; Customarily F11 is used as the ESC key.
|
|
51 ;; The file that includes this one, takes care of that.
|
|
52 (define-key function-key-map "\e[23~" [f11])
|
|
53 (define-key function-key-map "\e[24~" [f12])
|
|
54 (define-key function-key-map "\e[25~" [f13])
|
|
55 (define-key function-key-map "\e[26~" [f14])
|
|
56 (define-key function-key-map "\e[28~" [help])
|
|
57 (define-key function-key-map "\e[29~" [menu])
|
|
58 (define-key function-key-map "\e[31~" [f17])
|
|
59 (define-key function-key-map "\e[32~" [f18])
|
|
60 (define-key function-key-map "\e[33~" [f19])
|
|
61 (define-key function-key-map "\e[34~" [f20])
|
|
62
|
|
63 ;; Termcap or terminfo should set these.
|
|
64 ;; (define-key function-key-map "\eOA" [up])
|
|
65 ;; (define-key function-key-map "\eOB" [down])
|
|
66 ;; (define-key function-key-map "\eOC" [right])
|
|
67 ;; (define-key function-key-map "\eOD" [left])
|
|
68
|
|
69 ;; Termcap or terminfo should set these, but doesn't properly.
|
|
70 ;; Termcap sets these to k1-k4, which get mapped to f1-f4 in term.c
|
|
71 (define-key function-key-map "\eOP" [kp-f1])
|
|
72 (define-key function-key-map "\eOQ" [kp-f2])
|
|
73 (define-key function-key-map "\eOR" [kp-f3])
|
|
74 (define-key function-key-map "\eOS" [kp-f4])
|
|
75
|
|
76 (define-key function-key-map "\eOI" [kp-tab])
|
|
77 (define-key function-key-map "\eOj" [kp-multiply])
|
|
78 (define-key function-key-map "\eOk" [kp-add])
|
|
79 (define-key function-key-map "\eOl" [kp-separator])
|
|
80 (define-key function-key-map "\eOM" [kp-enter])
|
|
81 (define-key function-key-map "\eOm" [kp-subtract])
|
|
82 (define-key function-key-map "\eOn" [kp-decimal])
|
|
83 (define-key function-key-map "\eOo" [kp-divide])
|
|
84 (define-key function-key-map "\eOp" [kp-0])
|
|
85 (define-key function-key-map "\eOq" [kp-1])
|
|
86 (define-key function-key-map "\eOr" [kp-2])
|
|
87 (define-key function-key-map "\eOs" [kp-3])
|
|
88 (define-key function-key-map "\eOt" [kp-4])
|
|
89 (define-key function-key-map "\eOu" [kp-5])
|
|
90 (define-key function-key-map "\eOv" [kp-6])
|
|
91 (define-key function-key-map "\eOw" [kp-7])
|
|
92 (define-key function-key-map "\eOx" [kp-8])
|
|
93 (define-key function-key-map "\eOy" [kp-9])
|
|
94
|
|
95 ;;; lk201.el ends here
|