0
|
1 ;;; linux.el --- define function key sequences for the Linux console
|
|
2
|
|
3 ;; Author: Ben Wing
|
|
4 ;; Keywords: terminals
|
|
5
|
|
6 ;; Copyright (C) 1996 Ben Wing.
|
|
7 ;; This file is part of XEmacs.
|
|
8
|
|
9 ;; XEmacs is free software; you can redistribute it and/or modify it
|
|
10 ;; 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 ;; XEmacs is distributed in the hope that it will be useful, but
|
|
15 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
17 ;; General Public License for more details.
|
|
18
|
|
19 ;; You should have received a copy of the GNU General Public License
|
70
|
20 ;; along with XEmacs; see the file COPYING. If not, write to the Free
|
74
|
21 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
22 ;; 02111-1307, USA.
|
0
|
23
|
|
24 ;;;; Code:
|
|
25
|
|
26 ;; Termcap or terminfo should set these next four?
|
|
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 (define-key function-key-map "\e[[A" [f1])
|
|
33 (define-key function-key-map "\e[[B" [f2])
|
|
34 (define-key function-key-map "\e[[C" [f3])
|
|
35 (define-key function-key-map "\e[[D" [f4])
|
|
36 (define-key function-key-map "\e[[E" [f5])
|
|
37 (define-key function-key-map "\e[17~" [f6])
|
|
38 (define-key function-key-map "\e[18~" [f7])
|
|
39 (define-key function-key-map "\e[19~" [f8])
|
|
40 (define-key function-key-map "\e[20~" [f9])
|
|
41 (define-key function-key-map "\e[21~" [f10])
|
|
42 (define-key function-key-map "\e[23~" [f11])
|
|
43 (define-key function-key-map "\e[24~" [f12])
|
|
44 (define-key function-key-map "\e[25~" [f13])
|
|
45 (define-key function-key-map "\e[26~" [f14])
|
|
46 (define-key function-key-map "\e[28~" [f15])
|
|
47 (define-key function-key-map "\e[29~" [f16])
|
|
48 (define-key function-key-map "\e[31~" [f17])
|
|
49 (define-key function-key-map "\e[32~" [f18])
|
|
50 (define-key function-key-map "\e[33~" [f19])
|
|
51 (define-key function-key-map "\e[34~" [f20])
|
|
52
|
|
53 (define-key function-key-map "\e[1~" [home])
|
|
54 (define-key function-key-map "\e[2~" [insert])
|
|
55 (define-key function-key-map "\e[3~" [delete])
|
|
56 (define-key function-key-map "\e[4~" [end])
|
|
57 (define-key function-key-map "\e[5~" [prior])
|
|
58 (define-key function-key-map "\e[6~" [next])
|
74
|
59 (define-key function-key-map "\e[G" [kp-5])
|
0
|
60
|
74
|
61 (define-key function-key-map "\eOp" [kp-0])
|
|
62 (define-key function-key-map "\eOq" [kp-1])
|
|
63 (define-key function-key-map "\eOr" [kp-2])
|
|
64 (define-key function-key-map "\eOs" [kp-3])
|
|
65 (define-key function-key-map "\eOt" [kp-4])
|
|
66 (define-key function-key-map "\eOu" [kp-5])
|
|
67 (define-key function-key-map "\eOv" [kp-6])
|
|
68 (define-key function-key-map "\eOw" [kp-7])
|
|
69 (define-key function-key-map "\eOx" [kp-8])
|
|
70 (define-key function-key-map "\eOy" [kp-9])
|
0
|
71
|
74
|
72 (define-key function-key-map "\eOl" [kp-add])
|
|
73 (define-key function-key-map "\eOS" [kp-subtract])
|
|
74 (define-key function-key-map "\eOM" [kp-enter])
|
|
75 (define-key function-key-map "\eOR" [kp-multiply])
|
|
76 (define-key function-key-map "\eOQ" [kp-divide])
|
|
77 (define-key function-key-map "\eOn" [kp-decimal])
|
|
78 (define-key function-key-map "\eOP" [kp-numlock])
|
0
|
79
|
74
|
80 ;;; linux.el ends here
|
|
81
|