annotate lisp/term/xterm.el @ 23:0edd3412f124

Added tag r19-15b94 for changeset 8fc7fe29b841
author cvs
date Mon, 13 Aug 2007 08:50:31 +0200
parents 0293115a14e9
children 461c7ba8286a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; xterm.el --- define function key sequences for xterm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;; Author: FSF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;; Keywords: terminals
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;; Copyright (C) 1995 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;; This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;; XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;; under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;; XEmacs is distributed in the hope that it will be useful, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;; General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;; You should have received a copy of the GNU General Public License
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 0
diff changeset
20 ;; along with XEmacs; see the file COPYING. If not, write to the
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 0
diff changeset
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 0
diff changeset
22 ;; Boston, MA 02111-1307, USA.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;;; Code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;; Termcap or terminfo should set these next four?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 (define-key function-key-map "\e[A" [up])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 (define-key function-key-map "\e[B" [down])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 (define-key function-key-map "\e[C" [right])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 (define-key function-key-map "\e[D" [left])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 (define-key function-key-map "\eO\000" [home])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 (define-key function-key-map "\eOe" [end])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 (define-key function-key-map "\e[1~" [find])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 (define-key function-key-map "\e[2~" [insert])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 (define-key function-key-map "\e[3~" [delete])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 (define-key function-key-map "\e[4~" [select])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 (define-key function-key-map "\e[5~" [prior])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 (define-key function-key-map "\e[6~" [next])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 (define-key function-key-map "\e[11~" [f1])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 (define-key function-key-map "\e[12~" [f2])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 (define-key function-key-map "\e[13~" [f3])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 (define-key function-key-map "\e[14~" [f4])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 (define-key function-key-map "\e[15~" [f5])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (define-key function-key-map "\e[17~" [f6])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 (define-key function-key-map "\e[18~" [f7])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 (define-key function-key-map "\e[19~" [f8])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 (define-key function-key-map "\e[20~" [f9])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 (define-key function-key-map "\e[21~" [f10])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 (define-key function-key-map "\e[23~" [f11])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 (define-key function-key-map "\e[24~" [f12])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (define-key function-key-map "\e[25~" [f13])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 (define-key function-key-map "\e[26~" [f14])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 (define-key function-key-map "\e[28~" [help])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 (define-key function-key-map "\e[29~" [menu])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 ; FSF's xterm.el defines this like this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 ; (I don't know which one is more correct)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 ;(define-key function-key-map "\e[29~" [print])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 (define-key function-key-map "\e[31~" [f17])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 (define-key function-key-map "\e[32~" [f18])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 (define-key function-key-map "\e[33~" [f19])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 (define-key function-key-map "\e[34~" [f20])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 ;; Termcap or terminfo should set these next four.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 (define-key function-key-map "\eOA" [up])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 (define-key function-key-map "\eOB" [down])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 (define-key function-key-map "\eOC" [right])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (define-key function-key-map "\eOD" [left])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 (define-key function-key-map "\eOp" [kp_0])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 (define-key function-key-map "\eOq" [kp_1])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 (define-key function-key-map "\eOr" [kp_2])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (define-key function-key-map "\eOs" [kp_3])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 (define-key function-key-map "\eOt" [kp_4])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 (define-key function-key-map "\eOu" [kp_5])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 (define-key function-key-map "\eOv" [kp_6])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 (define-key function-key-map "\eOw" [kp_7])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 (define-key function-key-map "\eOx" [kp_8])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 (define-key function-key-map "\eOy" [kp_9])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 (define-key function-key-map "\eOk" [kp_add])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 (define-key function-key-map "\eOm" [kp_subtract])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 (define-key function-key-map "\eOM" [kp_enter])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 (define-key function-key-map "\eOj" [kp_multiply])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 (define-key function-key-map "\eOo" [kp_divide])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 (define-key function-key-map "\eOn" [kp_decimal])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 ;; If you use the X resource -- XTerm*sunFunctionKeys: on -- you may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 ;; need these.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 (define-key function-key-map "\e[224z" [f1])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 (define-key function-key-map "\e[225z" [f2])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 (define-key function-key-map "\e[226z" [f3])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 (define-key function-key-map "\e[227z" [f4])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 (define-key function-key-map "\e[228z" [f5])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 (define-key function-key-map "\e[229z" [f6])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 (define-key function-key-map "\e[230z" [f7])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 (define-key function-key-map "\e[231z" [f8])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 (define-key function-key-map "\e[232z" [f9])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 (define-key function-key-map "\e[233z" [f10])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 (define-key function-key-map "\e[234z" [f11])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 (define-key function-key-map "\e[235z" [f12])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 (define-key function-key-map "\e[194z" [(shift f1)])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (define-key function-key-map "\e[195z" [(shift f2)])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 (define-key function-key-map "\e[196z" [(shift f3)])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 (define-key function-key-map "\e[197z" [(shift f4)])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 (define-key function-key-map "\e[198z" [(shift f5)])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 (define-key function-key-map "\e[199z" [(shift f6)])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 (define-key function-key-map "\e[200z" [(shift f7)])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 (define-key function-key-map "\e[201z" [(shift f8)])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 (define-key function-key-map "\e[208z" [(shift f9)])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 (define-key function-key-map "\e[209z" [(shift f10)])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 (define-key function-key-map "\e[210z" [(shift f11)])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 (define-key function-key-map "\e[211z" [(shift f12)])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 (define-key function-key-map "\e[2z" [insert])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 (define-key function-key-map "\e[5z" [prior])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 (define-key function-key-map "\e[6z" [next])