annotate lisp/term/xterm.el @ 83635:9c01792a3ce8

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 793-802) - Update from CVS - Remove RCS keywords - Merge from emacs--rel--22 * emacs--rel--22 (patch 42-50) - Update from CVS - Merge from gnus--rel--5.10 - Gnus ChangeLog tweaks * gnus--rel--5.10 (patch 229-232) - Merge from emacs--devo--0, emacs--rel--22 - ChangeLog tweak - Update from CVS Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-23
author Miles Bader <miles@gnu.org>
date Sat, 16 Jun 2007 22:33:42 +0000
parents 2716535391b7 3049bd99b03e
children a53f9d3dc94d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
42947
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
1 ;;; xterm.el --- define function key sequences and standard colors for xterm
12159
e83a888f32d9 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
2
74509
f7702c5f335d Update copyright years.
Glenn Morris <rgm@gnu.org>
parents: 73997
diff changeset
3 ;; Copyright (C) 1995, 2001, 2002, 2003, 2004, 2005,
75347
e3694f1cb928 Add 2007 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 74509
diff changeset
4 ;; 2006, 2007 Free Software Foundation, Inc.
14170
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
5
12159
e83a888f32d9 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
6 ;; Author: FSF
e83a888f32d9 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
7 ;; Keywords: terminals
e83a888f32d9 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
8
14170
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
9 ;; This file is part of GNU Emacs.
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
10
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
11 ;; GNU Emacs is free software; you can redistribute it and/or modify
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
12 ;; it under the terms of the GNU General Public License as published by
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
14 ;; any later version.
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
15
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
16 ;; GNU Emacs is distributed in the hope that it will be useful,
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
19 ;; GNU General Public License for more details.
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
20
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
21 ;; You should have received a copy of the GNU General Public License
23cc3f54e536 Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents: 12159
diff changeset
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
64084
a8fa7c632ee4 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 63860
diff changeset
23 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
a8fa7c632ee4 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 63860
diff changeset
24 ;; Boston, MA 02110-1301, USA.
12159
e83a888f32d9 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
25
38431
853c3674f20a Fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 14170
diff changeset
26 ;;; Commentary:
853c3674f20a Fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 14170
diff changeset
27
853c3674f20a Fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 14170
diff changeset
28 ;;; Code:
12159
e83a888f32d9 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
29
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
30 (defvar xterm-function-map (make-sparse-keymap)
83297
8e357d90cc9f Fix exponential slowdowns on repeated tty frame creation.
Karoly Lorentey <lorentey@elte.hu>
parents: 83295
diff changeset
31 "Function key map overrides for xterm.")
61977
4039ddc27a88 (function-key-map): Call substitute-key-definition
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61842
diff changeset
32
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
33 ;; xterm from X.org 6.8.2 uses these key definitions.
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
34 (define-key xterm-function-map "\eOP" [f1])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
35 (define-key xterm-function-map "\eOQ" [f2])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
36 (define-key xterm-function-map "\eOR" [f3])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
37 (define-key xterm-function-map "\eOS" [f4])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
38 (define-key xterm-function-map "\e[15~" [f5])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
39 (define-key xterm-function-map "\e[17~" [f6])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
40 (define-key xterm-function-map "\e[18~" [f7])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
41 (define-key xterm-function-map "\e[19~" [f8])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
42 (define-key xterm-function-map "\e[20~" [f9])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
43 (define-key xterm-function-map "\e[21~" [f10])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
44 (define-key xterm-function-map "\e[23~" [f11])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
45 (define-key xterm-function-map "\e[24~" [f12])
61977
4039ddc27a88 (function-key-map): Call substitute-key-definition
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61842
diff changeset
46
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
47 (define-key xterm-function-map "\eO2P" [S-f1])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
48 (define-key xterm-function-map "\eO2Q" [S-f2])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
49 (define-key xterm-function-map "\eO2R" [S-f3])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
50 (define-key xterm-function-map "\eO2S" [S-f4])
83548
c71725faff1a Merged from emacs@sv.gnu.org. Last-minute emacsclient rewrites be damned!
Karoly Lorentey <lorentey@elte.hu>
parents: 83542 73997
diff changeset
51 (define-key xterm-function-map "\e[1;2P" [S-f1])
c71725faff1a Merged from emacs@sv.gnu.org. Last-minute emacsclient rewrites be damned!
Karoly Lorentey <lorentey@elte.hu>
parents: 83542 73997
diff changeset
52 (define-key xterm-function-map "\e[1;2Q" [S-f2])
c71725faff1a Merged from emacs@sv.gnu.org. Last-minute emacsclient rewrites be damned!
Karoly Lorentey <lorentey@elte.hu>
parents: 83542 73997
diff changeset
53 (define-key xterm-function-map "\e[1;2R" [S-f3])
c71725faff1a Merged from emacs@sv.gnu.org. Last-minute emacsclient rewrites be damned!
Karoly Lorentey <lorentey@elte.hu>
parents: 83542 73997
diff changeset
54 (define-key xterm-function-map "\e[1;2S" [S-f4])
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
55 (define-key xterm-function-map "\e[15;2~" [S-f5])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
56 (define-key xterm-function-map "\e[17;2~" [S-f6])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
57 (define-key xterm-function-map "\e[18;2~" [S-f7])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
58 (define-key xterm-function-map "\e[19;2~" [S-f8])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
59 (define-key xterm-function-map "\e[20;2~" [S-f9])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
60 (define-key xterm-function-map "\e[21;2~" [S-f10])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
61 (define-key xterm-function-map "\e[23;2~" [S-f11])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
62 (define-key xterm-function-map "\e[24;2~" [S-f12])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
63
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
64 (define-key xterm-function-map "\eO5P" [C-f1])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
65 (define-key xterm-function-map "\eO5Q" [C-f2])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
66 (define-key xterm-function-map "\eO5R" [C-f3])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
67 (define-key xterm-function-map "\eO5S" [C-f4])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
68 (define-key xterm-function-map "\e[15;5~" [C-f5])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
69 (define-key xterm-function-map "\e[17;5~" [C-f6])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
70 (define-key xterm-function-map "\e[18;5~" [C-f7])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
71 (define-key xterm-function-map "\e[19;5~" [C-f8])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
72 (define-key xterm-function-map "\e[20;5~" [C-f9])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
73 (define-key xterm-function-map "\e[21;5~" [C-f10])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
74 (define-key xterm-function-map "\e[23;5~" [C-f11])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
75 (define-key xterm-function-map "\e[24;5~" [C-f12])
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 65314
diff changeset
76
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
77 (define-key xterm-function-map "\eO6P" [C-S-f1])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
78 (define-key xterm-function-map "\eO6Q" [C-S-f2])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
79 (define-key xterm-function-map "\eO6R" [C-S-f3])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
80 (define-key xterm-function-map "\eO6S" [C-S-f4])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
81 (define-key xterm-function-map "\e[15;6~" [C-S-f5])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
82 (define-key xterm-function-map "\e[17;6~" [C-S-f6])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
83 (define-key xterm-function-map "\e[18;6~" [C-S-f7])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
84 (define-key xterm-function-map "\e[19;6~" [C-S-f8])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
85 (define-key xterm-function-map "\e[20;6~" [C-S-f9])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
86 (define-key xterm-function-map "\e[21;6~" [C-S-f10])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
87 (define-key xterm-function-map "\e[23;6~" [C-S-f11])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
88 (define-key xterm-function-map "\e[24;6~" [C-S-f12])
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 65314
diff changeset
89
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
90 (define-key xterm-function-map "\eO3P" [A-f1])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
91 (define-key xterm-function-map "\eO3Q" [A-f2])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
92 (define-key xterm-function-map "\eO3R" [A-f3])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
93 (define-key xterm-function-map "\eO3S" [A-f4])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
94 (define-key xterm-function-map "\e[15;3~" [A-f5])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
95 (define-key xterm-function-map "\e[17;3~" [A-f6])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
96 (define-key xterm-function-map "\e[18;3~" [A-f7])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
97 (define-key xterm-function-map "\e[19;3~" [A-f8])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
98 (define-key xterm-function-map "\e[20;3~" [A-f9])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
99 (define-key xterm-function-map "\e[21;3~" [A-f10])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
100 (define-key xterm-function-map "\e[23;3~" [A-f11])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
101 (define-key xterm-function-map "\e[24;3~" [A-f12])
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 65314
diff changeset
102
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
103 (define-key xterm-function-map "\eOA" [up])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
104 (define-key xterm-function-map "\eOB" [down])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
105 (define-key xterm-function-map "\eOC" [right])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
106 (define-key xterm-function-map "\eOD" [left])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
107 (define-key xterm-function-map "\eOF" [end])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
108 (define-key xterm-function-map "\eOH" [home])
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 65314
diff changeset
109
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
110 (define-key xterm-function-map "\e[1;2A" [S-up])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
111 (define-key xterm-function-map "\e[1;2B" [S-down])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
112 (define-key xterm-function-map "\e[1;2C" [S-right])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
113 (define-key xterm-function-map "\e[1;2D" [S-left])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
114 (define-key xterm-function-map "\e[1;2F" [S-end])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
115 (define-key xterm-function-map "\e[1;2H" [S-home])
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 65314
diff changeset
116
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
117 (define-key xterm-function-map "\e[1;5A" [C-up])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
118 (define-key xterm-function-map "\e[1;5B" [C-down])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
119 (define-key xterm-function-map "\e[1;5C" [C-right])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
120 (define-key xterm-function-map "\e[1;5D" [C-left])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
121 (define-key xterm-function-map "\e[1;5F" [C-end])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
122 (define-key xterm-function-map "\e[1;5H" [C-home])
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 65314
diff changeset
123
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
124 (define-key xterm-function-map "\e[1;6A" [C-S-up])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
125 (define-key xterm-function-map "\e[1;6B" [C-S-down])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
126 (define-key xterm-function-map "\e[1;6C" [C-S-right])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
127 (define-key xterm-function-map "\e[1;6D" [C-S-left])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
128 (define-key xterm-function-map "\e[1;6F" [C-S-end])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
129 (define-key xterm-function-map "\e[1;6H" [C-S-home])
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 65314
diff changeset
130
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
131 (define-key xterm-function-map "\e[1;3A" [A-up])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
132 (define-key xterm-function-map "\e[1;3B" [A-down])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
133 (define-key xterm-function-map "\e[1;3C" [A-right])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
134 (define-key xterm-function-map "\e[1;3D" [A-left])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
135 (define-key xterm-function-map "\e[1;3F" [A-end])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
136 (define-key xterm-function-map "\e[1;3H" [A-home])
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 65314
diff changeset
137
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
138 (define-key xterm-function-map "\e[2~" [insert])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
139 (define-key xterm-function-map "\e[3~" [delete])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
140 (define-key xterm-function-map "\e[5~" [prior])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
141 (define-key xterm-function-map "\e[6~" [next])
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 65314
diff changeset
142
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
143 (define-key xterm-function-map "\e[2;2~" [S-insert])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
144 (define-key xterm-function-map "\e[3;2~" [S-delete])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
145 (define-key xterm-function-map "\e[5;2~" [S-prior])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
146 (define-key xterm-function-map "\e[6;2~" [S-next])
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 65314
diff changeset
147
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
148 (define-key xterm-function-map "\e[2;5~" [C-insert])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
149 (define-key xterm-function-map "\e[3;5~" [C-delete])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
150 (define-key xterm-function-map "\e[5;5~" [C-prior])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
151 (define-key xterm-function-map "\e[6;5~" [C-next])
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 65314
diff changeset
152
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
153 (define-key xterm-function-map "\e[2;6~" [C-S-insert])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
154 (define-key xterm-function-map "\e[3;6~" [C-S-delete])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
155 (define-key xterm-function-map "\e[5;6~" [C-S-prior])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
156 (define-key xterm-function-map "\e[6;6~" [C-S-next])
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 65314
diff changeset
157
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
158 (define-key xterm-function-map "\e[2;3~" [A-insert])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
159 (define-key xterm-function-map "\e[3;3~" [A-delete])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
160 (define-key xterm-function-map "\e[5;3~" [A-prior])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
161 (define-key xterm-function-map "\e[6;3~" [A-next])
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 65314
diff changeset
162
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
163 (define-key xterm-function-map "\e[4~" [select])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
164 (define-key xterm-function-map "\e[29~" [print])
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 65314
diff changeset
165
83561
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
166 (define-key xterm-function-map "\eOj" [kp-multiply])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
167 (define-key xterm-function-map "\eOk" [kp-add])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
168 (define-key xterm-function-map "\eOl" [kp-separator])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
169 (define-key xterm-function-map "\eOm" [kp-subtract])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
170 (define-key xterm-function-map "\eOo" [kp-divide])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
171 (define-key xterm-function-map "\eOp" [kp-0])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
172 (define-key xterm-function-map "\eOq" [kp-1])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
173 (define-key xterm-function-map "\eOr" [kp-2])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
174 (define-key xterm-function-map "\eOs" [kp-3])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
175 (define-key xterm-function-map "\eOt" [kp-4])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
176 (define-key xterm-function-map "\eOu" [kp-5])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
177 (define-key xterm-function-map "\eOv" [kp-6])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
178 (define-key xterm-function-map "\eOw" [kp-7])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
179 (define-key xterm-function-map "\eOx" [kp-8])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
180 (define-key xterm-function-map "\eOy" [kp-9])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
181
83541
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
182 ;; These keys are available in xterm starting from version 216
83533
02e39decdc84 Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83531 72145
diff changeset
183 ;; if the modifyOtherKeys resource is set to 1.
83541
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
184
83542
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
185 (define-key xterm-function-map "\e[27;5;9~" [C-tab])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
186 (define-key xterm-function-map "\e[27;5;13~" [C-return])
83541
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
187 (define-key xterm-function-map "\e[27;5;39~" [?\C-\'])
83542
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
188 (define-key xterm-function-map "\e[27;5;44~" [?\C-,])
83541
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
189 (define-key xterm-function-map "\e[27;5;45~" [?\C--])
83542
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
190 (define-key xterm-function-map "\e[27;5;46~" [?\C-.])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
191 (define-key xterm-function-map "\e[27;5;47~" [?\C-/])
83541
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
192 (define-key xterm-function-map "\e[27;5;48~" [?\C-0])
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
193 (define-key xterm-function-map "\e[27;5;49~" [?\C-1])
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
194 ;; Not all C-DIGIT keys have a distinct binding.
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
195 (define-key xterm-function-map "\e[27;5;57~" [?\C-9])
83561
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
196 (define-key xterm-function-map "\e[27;5;59~" [?\C-\;])
83541
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
197 (define-key xterm-function-map "\e[27;5;61~" [?\C-=])
83542
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
198 (define-key xterm-function-map "\e[27;5;92~" [?\C-\\])
83541
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
199
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
200 (define-key xterm-function-map "\e[27;6;33~" [?\C-!])
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
201 (define-key xterm-function-map "\e[27;6;34~" [?\C-\"])
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
202 (define-key xterm-function-map "\e[27;6;35~" [?\C-#])
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
203 (define-key xterm-function-map "\e[27;6;36~" [?\C-$])
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
204 (define-key xterm-function-map "\e[27;6;37~" [?\C-%])
83561
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
205 (define-key xterm-function-map "\e[27;6;38~" [?\C-&])
83541
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
206 (define-key xterm-function-map "\e[27;6;40~" [?\C-(])
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
207 (define-key xterm-function-map "\e[27;6;41~" [?\C-)])
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
208 (define-key xterm-function-map "\e[27;6;42~" [?\C-*])
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
209 (define-key xterm-function-map "\e[27;6;43~" [?\C-+])
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
210 (define-key xterm-function-map "\e[27;6;58~" [?\C-:])
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
211 (define-key xterm-function-map "\e[27;6;60~" [?\C-<])
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
212 (define-key xterm-function-map "\e[27;6;62~" [?\C->])
83561
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
213 (define-key xterm-function-map "\e[27;6;63~" [(control ??)])
83541
694bbb62a75d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83534 72312
diff changeset
214
83542
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
215 ;; These are the strings emitted for various C-M- combinations
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
216 ;; for keyboards that the Meta and Alt modifiers are on the same
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
217 ;; key (usually labeled "Alt").
83561
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
218 (define-key xterm-function-map "\e[27;13;9~" [C-M-tab])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
219 (define-key xterm-function-map "\e[27;13;13~" [C-M-return])
83542
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
220
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
221 (define-key xterm-function-map "\e[27;13;39~" [?\C-\M-\'])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
222 (define-key xterm-function-map "\e[27;13;44~" [?\C-\M-,])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
223 (define-key xterm-function-map "\e[27;13;45~" [?\C-\M--])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
224 (define-key xterm-function-map "\e[27;13;46~" [?\C-\M-.])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
225 (define-key xterm-function-map "\e[27;13;47~" [?\C-\M-/])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
226 (define-key xterm-function-map "\e[27;13;48~" [?\C-\M-0])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
227 (define-key xterm-function-map "\e[27;13;49~" [?\C-\M-1])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
228 (define-key xterm-function-map "\e[27;13;50~" [?\C-\M-2])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
229 (define-key xterm-function-map "\e[27;13;51~" [?\C-\M-3])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
230 (define-key xterm-function-map "\e[27;13;52~" [?\C-\M-4])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
231 (define-key xterm-function-map "\e[27;13;53~" [?\C-\M-5])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
232 (define-key xterm-function-map "\e[27;13;54~" [?\C-\M-6])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
233 (define-key xterm-function-map "\e[27;13;55~" [?\C-\M-7])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
234 (define-key xterm-function-map "\e[27;13;56~" [?\C-\M-8])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
235 (define-key xterm-function-map "\e[27;13;57~" [?\C-\M-9])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
236 (define-key xterm-function-map "\e[27;13;59~" [?\C-\M-\;])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
237 (define-key xterm-function-map "\e[27;13;61~" [?\C-\M-=])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
238 (define-key xterm-function-map "\e[27;13;92~" [?\C-\M-\\])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
239
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
240 (define-key xterm-function-map "\e[27;14;33~" [?\C-\M-!])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
241 (define-key xterm-function-map "\e[27;14;34~" [?\C-\M-\"])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
242 (define-key xterm-function-map "\e[27;14;35~" [?\C-\M-#])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
243 (define-key xterm-function-map "\e[27;14;36~" [?\C-\M-$])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
244 (define-key xterm-function-map "\e[27;14;37~" [?\C-\M-%])
83561
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
245 (define-key xterm-function-map "\e[27;14;38~" [?\C-\M-&])
83542
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
246 (define-key xterm-function-map "\e[27;14;40~" [?\C-\M-(])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
247 (define-key xterm-function-map "\e[27;14;41~" [?\C-\M-)])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
248 (define-key xterm-function-map "\e[27;14;42~" [?\C-\M-*])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
249 (define-key xterm-function-map "\e[27;14;43~" [?\C-\M-+])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
250 (define-key xterm-function-map "\e[27;14;58~" [?\C-\M-:])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
251 (define-key xterm-function-map "\e[27;14;60~" [?\C-\M-<])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
252 (define-key xterm-function-map "\e[27;14;62~" [?\C-\M->])
83561
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
253 (define-key xterm-function-map "\e[27;14;63~" [(control meta ??)])
83533
02e39decdc84 Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83531 72145
diff changeset
254
83561
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
255 (define-key xterm-function-map "\e[27;7;9~" [C-M-tab])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
256 (define-key xterm-function-map "\e[27;7;13~" [C-M-return])
83533
02e39decdc84 Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83531 72145
diff changeset
257
83561
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
258 (define-key xterm-function-map "\e[27;7;32~" [?\C-\M-\s])
83542
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
259 (define-key xterm-function-map "\e[27;7;39~" [?\C-\M-\'])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
260 (define-key xterm-function-map "\e[27;7;44~" [?\C-\M-,])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
261 (define-key xterm-function-map "\e[27;7;45~" [?\C-\M--])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
262 (define-key xterm-function-map "\e[27;7;46~" [?\C-\M-.])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
263 (define-key xterm-function-map "\e[27;7;47~" [?\C-\M-/])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
264 (define-key xterm-function-map "\e[27;7;48~" [?\C-\M-0])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
265 (define-key xterm-function-map "\e[27;7;49~" [?\C-\M-1])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
266 (define-key xterm-function-map "\e[27;7;50~" [?\C-\M-2])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
267 (define-key xterm-function-map "\e[27;7;51~" [?\C-\M-3])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
268 (define-key xterm-function-map "\e[27;7;52~" [?\C-\M-4])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
269 (define-key xterm-function-map "\e[27;7;53~" [?\C-\M-5])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
270 (define-key xterm-function-map "\e[27;7;54~" [?\C-\M-6])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
271 (define-key xterm-function-map "\e[27;7;55~" [?\C-\M-7])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
272 (define-key xterm-function-map "\e[27;7;56~" [?\C-\M-8])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
273 (define-key xterm-function-map "\e[27;7;57~" [?\C-\M-9])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
274 (define-key xterm-function-map "\e[27;7;59~" [?\C-\M-\;])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
275 (define-key xterm-function-map "\e[27;7;61~" [?\C-\M-=])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
276 (define-key xterm-function-map "\e[27;7;92~" [?\C-\M-\\])
83533
02e39decdc84 Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83531 72145
diff changeset
277
83542
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
278 (define-key xterm-function-map "\e[27;8;33~" [?\C-\M-!])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
279 (define-key xterm-function-map "\e[27;8;34~" [?\C-\M-\"])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
280 (define-key xterm-function-map "\e[27;8;35~" [?\C-\M-#])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
281 (define-key xterm-function-map "\e[27;8;36~" [?\C-\M-$])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
282 (define-key xterm-function-map "\e[27;8;37~" [?\C-\M-%])
83561
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
283 (define-key xterm-function-map "\e[27;8;38~" [?\C-\M-&])
83542
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
284 (define-key xterm-function-map "\e[27;8;40~" [?\C-\M-(])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
285 (define-key xterm-function-map "\e[27;8;41~" [?\C-\M-)])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
286 (define-key xterm-function-map "\e[27;8;42~" [?\C-\M-*])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
287 (define-key xterm-function-map "\e[27;8;43~" [?\C-\M-+])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
288 (define-key xterm-function-map "\e[27;8;58~" [?\C-\M-:])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
289 (define-key xterm-function-map "\e[27;8;60~" [?\C-\M-<])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
290 (define-key xterm-function-map "\e[27;8;62~" [?\C-\M->])
83561
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
291 (define-key xterm-function-map "\e[27;8;63~" [(control meta ??)])
83533
02e39decdc84 Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83531 72145
diff changeset
292
83542
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
293 (define-key xterm-function-map "\e[27;2;9~" [S-tab])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
294 (define-key xterm-function-map "\e[27;2;13~" [S-return])
2d56e13fd23d Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83541 72652
diff changeset
295
83561
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
296 (define-key xterm-function-map "\e[27;6;9~" [C-S-tab])
dc002877ce12 Merged from emacs@sv.gnu.org
Karoly Lorentey <karoly@lorentey.hu>
parents: 83554 77065
diff changeset
297 (define-key xterm-function-map "\e[27;6;13~" [C-S-return])
83516
1321f6cfb389 Merged from emacs@sv.gnu.org
Karoly Lorentey <lorentey@elte.hu>
parents: 83468 70529
diff changeset
298
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
299 ;; Other versions of xterm might emit these.
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
300 (define-key xterm-function-map "\e[A" [up])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
301 (define-key xterm-function-map "\e[B" [down])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
302 (define-key xterm-function-map "\e[C" [right])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
303 (define-key xterm-function-map "\e[D" [left])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
304 (define-key xterm-function-map "\e[1~" [home])
61518
3e0057a2ce89 (function-key-map): Add mappings for A-, C-, S-
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61409
diff changeset
305
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
306 (define-key xterm-function-map "\e[1;2A" [S-up])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
307 (define-key xterm-function-map "\e[1;2B" [S-down])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
308 (define-key xterm-function-map "\e[1;2C" [S-right])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
309 (define-key xterm-function-map "\e[1;2D" [S-left])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
310 (define-key xterm-function-map "\e[1;2F" [S-end])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
311 (define-key xterm-function-map "\e[1;2H" [S-home])
56979
f0f48b9999fa (function-key-map): Add bindings for C- and S- cursor
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
312
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
313 (define-key xterm-function-map "\e[1;5A" [C-up])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
314 (define-key xterm-function-map "\e[1;5B" [C-down])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
315 (define-key xterm-function-map "\e[1;5C" [C-right])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
316 (define-key xterm-function-map "\e[1;5D" [C-left])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
317 (define-key xterm-function-map "\e[1;5F" [C-end])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
318 (define-key xterm-function-map "\e[1;5H" [C-home])
61518
3e0057a2ce89 (function-key-map): Add mappings for A-, C-, S-
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61409
diff changeset
319
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
320 (define-key xterm-function-map "\e[11~" [f1])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
321 (define-key xterm-function-map "\e[12~" [f2])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
322 (define-key xterm-function-map "\e[13~" [f3])
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
323 (define-key xterm-function-map "\e[14~" [f4])
61518
3e0057a2ce89 (function-key-map): Add mappings for A-, C-, S-
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61409
diff changeset
324
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
325 (defun terminal-init-xterm ()
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
326 "Terminal initialization function for xterm."
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
327 ;; rxvt terminals sometimes set the TERM variable to "xterm", but
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
328 ;; rxvt's keybindings are incompatible with xterm's. It is
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
329 ;; better in that case to use rxvt's initializion function.
83594
2716535391b7 Rudimentary fix for environment variable handling.
Miles Bader <miles@gnu.org>
parents: 83561
diff changeset
330 (if (and (getenv "COLORTERM" (selected-frame))
2716535391b7 Rudimentary fix for environment variable handling.
Miles Bader <miles@gnu.org>
parents: 83561
diff changeset
331 (string-match "\\`rxvt" (getenv "COLORTERM" (selected-frame))))
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
332 (tty-run-terminal-initialization (selected-frame) "rxvt")
64597
79fcb8ba32de Load term/rxvt if the terminal is actually an
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64084
diff changeset
333
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
334 ;; The terminal intialization C code file might have initialized
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
335 ;; function keys F13->F60 from the termcap/terminfo information. On
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
336 ;; a PC-style keyboard these keys correspond to
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
337 ;; MODIFIER-FUNCTION_KEY, where modifier is S-, C, A-, C-S-. The
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
338 ;; code here subsitutes the corresponding defintions in
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
339 ;; function-key-map. This substitution is needed because if a key
73997
0ef65601533e (terminal-init-xterm): Add more key bindings.
Andreas Schwab <schwab@suse.de>
parents: 72652
diff changeset
340 ;; definition is found in function-key-map, there are no further
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
341 ;; lookups in other keymaps.
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
342 (substitute-key-definition [f13] [S-f1] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
343 (substitute-key-definition [f14] [S-f2] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
344 (substitute-key-definition [f15] [S-f3] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
345 (substitute-key-definition [f16] [S-f4] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
346 (substitute-key-definition [f17] [S-f5] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
347 (substitute-key-definition [f18] [S-f6] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
348 (substitute-key-definition [f19] [S-f7] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
349 (substitute-key-definition [f20] [S-f8] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
350 (substitute-key-definition [f21] [S-f9] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
351 (substitute-key-definition [f22] [S-f10] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
352 (substitute-key-definition [f23] [S-f11] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
353 (substitute-key-definition [f24] [S-f12] local-function-key-map)
61977
4039ddc27a88 (function-key-map): Call substitute-key-definition
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61842
diff changeset
354
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
355 (substitute-key-definition [f25] [C-f1] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
356 (substitute-key-definition [f26] [C-f2] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
357 (substitute-key-definition [f27] [C-f3] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
358 (substitute-key-definition [f28] [C-f4] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
359 (substitute-key-definition [f29] [C-f5] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
360 (substitute-key-definition [f30] [C-f6] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
361 (substitute-key-definition [f31] [C-f7] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
362 (substitute-key-definition [f32] [C-f8] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
363 (substitute-key-definition [f33] [C-f9] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
364 (substitute-key-definition [f34] [C-f10] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
365 (substitute-key-definition [f35] [C-f11] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
366 (substitute-key-definition [f36] [C-f12] local-function-key-map)
61977
4039ddc27a88 (function-key-map): Call substitute-key-definition
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61842
diff changeset
367
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
368 (substitute-key-definition [f37] [C-S-f1] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
369 (substitute-key-definition [f38] [C-S-f2] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
370 (substitute-key-definition [f39] [C-S-f3] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
371 (substitute-key-definition [f40] [C-S-f4] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
372 (substitute-key-definition [f41] [C-S-f5] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
373 (substitute-key-definition [f42] [C-S-f6] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
374 (substitute-key-definition [f43] [C-S-f7] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
375 (substitute-key-definition [f44] [C-S-f8] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
376 (substitute-key-definition [f45] [C-S-f9] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
377 (substitute-key-definition [f46] [C-S-f10] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
378 (substitute-key-definition [f47] [C-S-f11] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
379 (substitute-key-definition [f48] [C-S-f12] local-function-key-map)
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
380
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
381 (substitute-key-definition [f49] [A-f1] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
382 (substitute-key-definition [f50] [A-f2] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
383 (substitute-key-definition [f51] [A-f3] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
384 (substitute-key-definition [f52] [A-f4] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
385 (substitute-key-definition [f53] [A-f5] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
386 (substitute-key-definition [f54] [A-f6] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
387 (substitute-key-definition [f55] [A-f7] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
388 (substitute-key-definition [f56] [A-f8] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
389 (substitute-key-definition [f57] [A-f9] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
390 (substitute-key-definition [f58] [A-f10] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
391 (substitute-key-definition [f59] [A-f11] local-function-key-map)
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83517
diff changeset
392 (substitute-key-definition [f60] [A-f12] local-function-key-map)
61977
4039ddc27a88 (function-key-map): Call substitute-key-definition
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61842
diff changeset
393
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
394 (let ((map (make-sparse-keymap)))
83635
9c01792a3ce8 Merge from emacs--devo--0
Miles Bader <miles@gnu.org>
parents: 83594 78005
diff changeset
395
9c01792a3ce8 Merge from emacs--devo--0
Miles Bader <miles@gnu.org>
parents: 83594 78005
diff changeset
396 ;; Use inheritance to let the main keymap override those defaults.
9c01792a3ce8 Merge from emacs--devo--0
Miles Bader <miles@gnu.org>
parents: 83594 78005
diff changeset
397 ;; This way we don't override terminfo-derived settings or settings
9c01792a3ce8 Merge from emacs--devo--0
Miles Bader <miles@gnu.org>
parents: 83594 78005
diff changeset
398 ;; made in the .emacs file.
9c01792a3ce8 Merge from emacs--devo--0
Miles Bader <miles@gnu.org>
parents: 83594 78005
diff changeset
399 (set-keymap-parent map (keymap-parent local-function-key-map))
9c01792a3ce8 Merge from emacs--devo--0
Miles Bader <miles@gnu.org>
parents: 83594 78005
diff changeset
400 (set-keymap-parent local-function-key-map map)
9c01792a3ce8 Merge from emacs--devo--0
Miles Bader <miles@gnu.org>
parents: 83594 78005
diff changeset
401
65314
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
402 ;; xterm from X.org 6.8.2 uses these key definitions.
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
403 (define-key map "\eOP" [f1])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
404 (define-key map "\eOQ" [f2])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
405 (define-key map "\eOR" [f3])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
406 (define-key map "\eOS" [f4])
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
407 (define-key map "\e[15~" [f5])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
408 (define-key map "\e[17~" [f6])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
409 (define-key map "\e[18~" [f7])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
410 (define-key map "\e[19~" [f8])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
411 (define-key map "\e[20~" [f9])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
412 (define-key map "\e[21~" [f10])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
413 (define-key map "\e[23~" [f11])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
414 (define-key map "\e[24~" [f12])
61842
0e4683c3074a * NEWS: Mention xterm key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61518
diff changeset
415
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
416 (define-key map "\eO2P" [S-f1])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
417 (define-key map "\eO2Q" [S-f2])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
418 (define-key map "\eO2R" [S-f3])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
419 (define-key map "\eO2S" [S-f4])
73997
0ef65601533e (terminal-init-xterm): Add more key bindings.
Andreas Schwab <schwab@suse.de>
parents: 72652
diff changeset
420 (define-key map "\e[1;2P" [S-f1])
0ef65601533e (terminal-init-xterm): Add more key bindings.
Andreas Schwab <schwab@suse.de>
parents: 72652
diff changeset
421 (define-key map "\e[1;2Q" [S-f2])
0ef65601533e (terminal-init-xterm): Add more key bindings.
Andreas Schwab <schwab@suse.de>
parents: 72652
diff changeset
422 (define-key map "\e[1;2R" [S-f3])
0ef65601533e (terminal-init-xterm): Add more key bindings.
Andreas Schwab <schwab@suse.de>
parents: 72652
diff changeset
423 (define-key map "\e[1;2S" [S-f4])
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
424 (define-key map "\e[15;2~" [S-f5])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
425 (define-key map "\e[17;2~" [S-f6])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
426 (define-key map "\e[18;2~" [S-f7])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
427 (define-key map "\e[19;2~" [S-f8])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
428 (define-key map "\e[20;2~" [S-f9])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
429 (define-key map "\e[21;2~" [S-f10])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
430 (define-key map "\e[23;2~" [S-f11])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
431 (define-key map "\e[24;2~" [S-f12])
61518
3e0057a2ce89 (function-key-map): Add mappings for A-, C-, S-
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61409
diff changeset
432
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
433 (define-key map "\eO5P" [C-f1])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
434 (define-key map "\eO5Q" [C-f2])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
435 (define-key map "\eO5R" [C-f3])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
436 (define-key map "\eO5S" [C-f4])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
437 (define-key map "\e[15;5~" [C-f5])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
438 (define-key map "\e[17;5~" [C-f6])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
439 (define-key map "\e[18;5~" [C-f7])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
440 (define-key map "\e[19;5~" [C-f8])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
441 (define-key map "\e[20;5~" [C-f9])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
442 (define-key map "\e[21;5~" [C-f10])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
443 (define-key map "\e[23;5~" [C-f11])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
444 (define-key map "\e[24;5~" [C-f12])
61518
3e0057a2ce89 (function-key-map): Add mappings for A-, C-, S-
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61409
diff changeset
445
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
446 (define-key map "\eO6P" [C-S-f1])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
447 (define-key map "\eO6Q" [C-S-f2])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
448 (define-key map "\eO6R" [C-S-f3])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
449 (define-key map "\eO6S" [C-S-f4])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
450 (define-key map "\e[15;6~" [C-S-f5])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
451 (define-key map "\e[17;6~" [C-S-f6])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
452 (define-key map "\e[18;6~" [C-S-f7])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
453 (define-key map "\e[19;6~" [C-S-f8])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
454 (define-key map "\e[20;6~" [C-S-f9])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
455 (define-key map "\e[21;6~" [C-S-f10])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
456 (define-key map "\e[23;6~" [C-S-f11])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
457 (define-key map "\e[24;6~" [C-S-f12])
61518
3e0057a2ce89 (function-key-map): Add mappings for A-, C-, S-
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61409
diff changeset
458
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
459 (define-key map "\eO3P" [A-f1])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
460 (define-key map "\eO3Q" [A-f2])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
461 (define-key map "\eO3R" [A-f3])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
462 (define-key map "\eO3S" [A-f4])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
463 (define-key map "\e[15;3~" [A-f5])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
464 (define-key map "\e[17;3~" [A-f6])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
465 (define-key map "\e[18;3~" [A-f7])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
466 (define-key map "\e[19;3~" [A-f8])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
467 (define-key map "\e[20;3~" [A-f9])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
468 (define-key map "\e[21;3~" [A-f10])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
469 (define-key map "\e[23;3~" [A-f11])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
470 (define-key map "\e[24;3~" [A-f12])
61518
3e0057a2ce89 (function-key-map): Add mappings for A-, C-, S-
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61409
diff changeset
471
65314
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
472 (define-key map "\eOA" [up])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
473 (define-key map "\eOB" [down])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
474 (define-key map "\eOC" [right])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
475 (define-key map "\eOD" [left])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
476 (define-key map "\eOF" [end])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
477 (define-key map "\eOH" [home])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
478
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
479 (define-key map "\e[1;2A" [S-up])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
480 (define-key map "\e[1;2B" [S-down])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
481 (define-key map "\e[1;2C" [S-right])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
482 (define-key map "\e[1;2D" [S-left])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
483 (define-key map "\e[1;2F" [S-end])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
484 (define-key map "\e[1;2H" [S-home])
56979
f0f48b9999fa (function-key-map): Add bindings for C- and S- cursor
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
485
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
486 (define-key map "\e[1;5A" [C-up])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
487 (define-key map "\e[1;5B" [C-down])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
488 (define-key map "\e[1;5C" [C-right])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
489 (define-key map "\e[1;5D" [C-left])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
490 (define-key map "\e[1;5F" [C-end])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
491 (define-key map "\e[1;5H" [C-home])
61518
3e0057a2ce89 (function-key-map): Add mappings for A-, C-, S-
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61409
diff changeset
492
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
493 (define-key map "\e[1;6A" [C-S-up])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
494 (define-key map "\e[1;6B" [C-S-down])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
495 (define-key map "\e[1;6C" [C-S-right])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
496 (define-key map "\e[1;6D" [C-S-left])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
497 (define-key map "\e[1;6F" [C-S-end])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
498 (define-key map "\e[1;6H" [C-S-home])
61518
3e0057a2ce89 (function-key-map): Add mappings for A-, C-, S-
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61409
diff changeset
499
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
500 (define-key map "\e[1;3A" [A-up])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
501 (define-key map "\e[1;3B" [A-down])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
502 (define-key map "\e[1;3C" [A-right])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
503 (define-key map "\e[1;3D" [A-left])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
504 (define-key map "\e[1;3F" [A-end])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
505 (define-key map "\e[1;3H" [A-home])
56979
f0f48b9999fa (function-key-map): Add bindings for C- and S- cursor
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
506
65314
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
507 (define-key map "\e[2~" [insert])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
508 (define-key map "\e[3~" [delete])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
509 (define-key map "\e[5~" [prior])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
510 (define-key map "\e[6~" [next])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
511
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
512 (define-key map "\e[2;2~" [S-insert])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
513 (define-key map "\e[3;2~" [S-delete])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
514 (define-key map "\e[5;2~" [S-prior])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
515 (define-key map "\e[6;2~" [S-next])
46065
3f4640971880 (function-key-map): Add some bindings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42947
diff changeset
516
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
517 (define-key map "\e[2;5~" [C-insert])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
518 (define-key map "\e[3;5~" [C-delete])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
519 (define-key map "\e[5;5~" [C-prior])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
520 (define-key map "\e[6;5~" [C-next])
46065
3f4640971880 (function-key-map): Add some bindings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42947
diff changeset
521
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
522 (define-key map "\e[2;6~" [C-S-insert])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
523 (define-key map "\e[3;6~" [C-S-delete])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
524 (define-key map "\e[5;6~" [C-S-prior])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
525 (define-key map "\e[6;6~" [C-S-next])
61518
3e0057a2ce89 (function-key-map): Add mappings for A-, C-, S-
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61409
diff changeset
526
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
527 (define-key map "\e[2;3~" [A-insert])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
528 (define-key map "\e[3;3~" [A-delete])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
529 (define-key map "\e[5;3~" [A-prior])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
530 (define-key map "\e[6;3~" [A-next])
61518
3e0057a2ce89 (function-key-map): Add mappings for A-, C-, S-
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61409
diff changeset
531
65314
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
532 (define-key map "\e[4~" [select])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
533 (define-key map "\e[29~" [print])
77048
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
534
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
535 (define-key map "\eOj" [kp-multiply])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
536 (define-key map "\eOk" [kp-add])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
537 (define-key map "\eOl" [kp-separator])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
538 (define-key map "\eOm" [kp-subtract])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
539 (define-key map "\eOo" [kp-divide])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
540 (define-key map "\eOp" [kp-0])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
541 (define-key map "\eOq" [kp-1])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
542 (define-key map "\eOr" [kp-2])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
543 (define-key map "\eOs" [kp-3])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
544 (define-key map "\eOt" [kp-4])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
545 (define-key map "\eOu" [kp-5])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
546 (define-key map "\eOv" [kp-6])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
547 (define-key map "\eOw" [kp-7])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
548 (define-key map "\eOx" [kp-8])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
549 (define-key map "\eOy" [kp-9])
a15b726a4752 (terminal-init-xterm): Add bindings for keypad keys.
Andreas Schwab <schwab@suse.de>
parents: 75347
diff changeset
550
72312
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
551 ;; These keys are available in xterm starting from version 216
72061
c6bef0753a98 (terminal-init-xterm): Fix key bindings
Dan Nicolaescu <dann@ics.uci.edu>
parents: 71410
diff changeset
552 ;; if the modifyOtherKeys resource is set to 1.
72312
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
553
72642
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
554 (define-key map "\e[27;5;9~" [C-tab])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
555 (define-key map "\e[27;5;13~" [C-return])
72312
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
556 (define-key map "\e[27;5;39~" [?\C-\'])
72642
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
557 (define-key map "\e[27;5;44~" [?\C-,])
72312
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
558 (define-key map "\e[27;5;45~" [?\C--])
72642
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
559 (define-key map "\e[27;5;46~" [?\C-.])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
560 (define-key map "\e[27;5;47~" [?\C-/])
72312
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
561 (define-key map "\e[27;5;48~" [?\C-0])
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
562 (define-key map "\e[27;5;49~" [?\C-1])
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
563 ;; Not all C-DIGIT keys have a distinct binding.
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
564 (define-key map "\e[27;5;57~" [?\C-9])
77065
5e0d61b2e907 (terminal-init-xterm): Fix key definitions. Add binding for C-M-SPC.
Chong Yidong <cyd@stupidchicken.com>
parents: 77048
diff changeset
565 (define-key map "\e[27;5;59~" [?\C-\;])
72312
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
566 (define-key map "\e[27;5;61~" [?\C-=])
72642
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
567 (define-key map "\e[27;5;92~" [?\C-\\])
72312
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
568
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
569 (define-key map "\e[27;6;33~" [?\C-!])
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
570 (define-key map "\e[27;6;34~" [?\C-\"])
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
571 (define-key map "\e[27;6;35~" [?\C-#])
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
572 (define-key map "\e[27;6;36~" [?\C-$])
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
573 (define-key map "\e[27;6;37~" [?\C-%])
77065
5e0d61b2e907 (terminal-init-xterm): Fix key definitions. Add binding for C-M-SPC.
Chong Yidong <cyd@stupidchicken.com>
parents: 77048
diff changeset
574 (define-key map "\e[27;6;38~" [?\C-&])
78005
3049bd99b03e * term/xterm.el (terminal-init-xterm): Escape parens in character
Dan Nicolaescu <dann@ics.uci.edu>
parents: 77065
diff changeset
575 (define-key map "\e[27;6;40~" [?\C-\(])
3049bd99b03e * term/xterm.el (terminal-init-xterm): Escape parens in character
Dan Nicolaescu <dann@ics.uci.edu>
parents: 77065
diff changeset
576 (define-key map "\e[27;6;41~" [?\C-\)])
72312
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
577 (define-key map "\e[27;6;42~" [?\C-*])
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
578 (define-key map "\e[27;6;43~" [?\C-+])
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
579 (define-key map "\e[27;6;58~" [?\C-:])
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
580 (define-key map "\e[27;6;60~" [?\C-<])
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
581 (define-key map "\e[27;6;62~" [?\C->])
77065
5e0d61b2e907 (terminal-init-xterm): Fix key definitions. Add binding for C-M-SPC.
Chong Yidong <cyd@stupidchicken.com>
parents: 77048
diff changeset
582 (define-key map "\e[27;6;63~" [(control ??)])
72312
fd4771b15a42 (terminal-init-xterm): Add more key bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72145
diff changeset
583
72652
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
584 ;; These are the strings emitted for various C-M- combinations
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
585 ;; for keyboards that the Meta and Alt modifiers are on the same
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
586 ;; key (usually labeled "Alt").
77065
5e0d61b2e907 (terminal-init-xterm): Fix key definitions. Add binding for C-M-SPC.
Chong Yidong <cyd@stupidchicken.com>
parents: 77048
diff changeset
587 (define-key map "\e[27;13;9~" [C-M-tab])
5e0d61b2e907 (terminal-init-xterm): Fix key definitions. Add binding for C-M-SPC.
Chong Yidong <cyd@stupidchicken.com>
parents: 77048
diff changeset
588 (define-key map "\e[27;13;13~" [C-M-return])
72061
c6bef0753a98 (terminal-init-xterm): Fix key bindings
Dan Nicolaescu <dann@ics.uci.edu>
parents: 71410
diff changeset
589
72642
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
590 (define-key map "\e[27;13;39~" [?\C-\M-\'])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
591 (define-key map "\e[27;13;44~" [?\C-\M-,])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
592 (define-key map "\e[27;13;45~" [?\C-\M--])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
593 (define-key map "\e[27;13;46~" [?\C-\M-.])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
594 (define-key map "\e[27;13;47~" [?\C-\M-/])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
595 (define-key map "\e[27;13;48~" [?\C-\M-0])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
596 (define-key map "\e[27;13;49~" [?\C-\M-1])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
597 (define-key map "\e[27;13;50~" [?\C-\M-2])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
598 (define-key map "\e[27;13;51~" [?\C-\M-3])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
599 (define-key map "\e[27;13;52~" [?\C-\M-4])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
600 (define-key map "\e[27;13;53~" [?\C-\M-5])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
601 (define-key map "\e[27;13;54~" [?\C-\M-6])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
602 (define-key map "\e[27;13;55~" [?\C-\M-7])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
603 (define-key map "\e[27;13;56~" [?\C-\M-8])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
604 (define-key map "\e[27;13;57~" [?\C-\M-9])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
605 (define-key map "\e[27;13;59~" [?\C-\M-\;])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
606 (define-key map "\e[27;13;61~" [?\C-\M-=])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
607 (define-key map "\e[27;13;92~" [?\C-\M-\\])
72061
c6bef0753a98 (terminal-init-xterm): Fix key bindings
Dan Nicolaescu <dann@ics.uci.edu>
parents: 71410
diff changeset
608
72642
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
609 (define-key map "\e[27;14;33~" [?\C-\M-!])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
610 (define-key map "\e[27;14;34~" [?\C-\M-\"])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
611 (define-key map "\e[27;14;35~" [?\C-\M-#])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
612 (define-key map "\e[27;14;36~" [?\C-\M-$])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
613 (define-key map "\e[27;14;37~" [?\C-\M-%])
77065
5e0d61b2e907 (terminal-init-xterm): Fix key definitions. Add binding for C-M-SPC.
Chong Yidong <cyd@stupidchicken.com>
parents: 77048
diff changeset
614 (define-key map "\e[27;14;38~" [?\C-\M-&])
78005
3049bd99b03e * term/xterm.el (terminal-init-xterm): Escape parens in character
Dan Nicolaescu <dann@ics.uci.edu>
parents: 77065
diff changeset
615 (define-key map "\e[27;14;40~" [?\C-\M-\(])
3049bd99b03e * term/xterm.el (terminal-init-xterm): Escape parens in character
Dan Nicolaescu <dann@ics.uci.edu>
parents: 77065
diff changeset
616 (define-key map "\e[27;14;41~" [?\C-\M-\)])
72642
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
617 (define-key map "\e[27;14;42~" [?\C-\M-*])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
618 (define-key map "\e[27;14;43~" [?\C-\M-+])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
619 (define-key map "\e[27;14;58~" [?\C-\M-:])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
620 (define-key map "\e[27;14;60~" [?\C-\M-<])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
621 (define-key map "\e[27;14;62~" [?\C-\M->])
77065
5e0d61b2e907 (terminal-init-xterm): Fix key definitions. Add binding for C-M-SPC.
Chong Yidong <cyd@stupidchicken.com>
parents: 77048
diff changeset
622 (define-key map "\e[27;14;63~" [(control meta ??)])
72061
c6bef0753a98 (terminal-init-xterm): Fix key bindings
Dan Nicolaescu <dann@ics.uci.edu>
parents: 71410
diff changeset
623
77065
5e0d61b2e907 (terminal-init-xterm): Fix key definitions. Add binding for C-M-SPC.
Chong Yidong <cyd@stupidchicken.com>
parents: 77048
diff changeset
624 (define-key map "\e[27;7;9~" [C-M-tab])
5e0d61b2e907 (terminal-init-xterm): Fix key definitions. Add binding for C-M-SPC.
Chong Yidong <cyd@stupidchicken.com>
parents: 77048
diff changeset
625 (define-key map "\e[27;7;13~" [C-M-return])
72652
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
626
77065
5e0d61b2e907 (terminal-init-xterm): Fix key definitions. Add binding for C-M-SPC.
Chong Yidong <cyd@stupidchicken.com>
parents: 77048
diff changeset
627 (define-key map "\e[27;7;32~" [?\C-\M-\s])
72652
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
628 (define-key map "\e[27;7;39~" [?\C-\M-\'])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
629 (define-key map "\e[27;7;44~" [?\C-\M-,])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
630 (define-key map "\e[27;7;45~" [?\C-\M--])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
631 (define-key map "\e[27;7;46~" [?\C-\M-.])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
632 (define-key map "\e[27;7;47~" [?\C-\M-/])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
633 (define-key map "\e[27;7;48~" [?\C-\M-0])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
634 (define-key map "\e[27;7;49~" [?\C-\M-1])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
635 (define-key map "\e[27;7;50~" [?\C-\M-2])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
636 (define-key map "\e[27;7;51~" [?\C-\M-3])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
637 (define-key map "\e[27;7;52~" [?\C-\M-4])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
638 (define-key map "\e[27;7;53~" [?\C-\M-5])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
639 (define-key map "\e[27;7;54~" [?\C-\M-6])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
640 (define-key map "\e[27;7;55~" [?\C-\M-7])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
641 (define-key map "\e[27;7;56~" [?\C-\M-8])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
642 (define-key map "\e[27;7;57~" [?\C-\M-9])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
643 (define-key map "\e[27;7;59~" [?\C-\M-\;])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
644 (define-key map "\e[27;7;61~" [?\C-\M-=])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
645 (define-key map "\e[27;7;92~" [?\C-\M-\\])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
646
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
647 (define-key map "\e[27;8;33~" [?\C-\M-!])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
648 (define-key map "\e[27;8;34~" [?\C-\M-\"])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
649 (define-key map "\e[27;8;35~" [?\C-\M-#])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
650 (define-key map "\e[27;8;36~" [?\C-\M-$])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
651 (define-key map "\e[27;8;37~" [?\C-\M-%])
77065
5e0d61b2e907 (terminal-init-xterm): Fix key definitions. Add binding for C-M-SPC.
Chong Yidong <cyd@stupidchicken.com>
parents: 77048
diff changeset
652 (define-key map "\e[27;8;38~" [?\C-\M-&])
78005
3049bd99b03e * term/xterm.el (terminal-init-xterm): Escape parens in character
Dan Nicolaescu <dann@ics.uci.edu>
parents: 77065
diff changeset
653 (define-key map "\e[27;8;40~" [?\C-\M-\(])
3049bd99b03e * term/xterm.el (terminal-init-xterm): Escape parens in character
Dan Nicolaescu <dann@ics.uci.edu>
parents: 77065
diff changeset
654 (define-key map "\e[27;8;41~" [?\C-\M-\)])
72652
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
655 (define-key map "\e[27;8;42~" [?\C-\M-*])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
656 (define-key map "\e[27;8;43~" [?\C-\M-+])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
657 (define-key map "\e[27;8;58~" [?\C-\M-:])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
658 (define-key map "\e[27;8;60~" [?\C-\M-<])
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
659 (define-key map "\e[27;8;62~" [?\C-\M->])
77065
5e0d61b2e907 (terminal-init-xterm): Fix key definitions. Add binding for C-M-SPC.
Chong Yidong <cyd@stupidchicken.com>
parents: 77048
diff changeset
660 (define-key map "\e[27;8;63~" [(control meta ??)])
72652
78baf6b1169a (terminal-init-xterm): Add more C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72642
diff changeset
661
72642
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
662 (define-key map "\e[27;2;9~" [S-tab])
88c753c19400 (terminal-init-xterm): Add C-M- bindings.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 72312
diff changeset
663 (define-key map "\e[27;2;13~" [S-return])
72061
c6bef0753a98 (terminal-init-xterm): Fix key bindings
Dan Nicolaescu <dann@ics.uci.edu>
parents: 71410
diff changeset
664
77065
5e0d61b2e907 (terminal-init-xterm): Fix key definitions. Add binding for C-M-SPC.
Chong Yidong <cyd@stupidchicken.com>
parents: 77048
diff changeset
665 (define-key map "\e[27;6;9~" [C-S-tab])
5e0d61b2e907 (terminal-init-xterm): Fix key definitions. Add binding for C-M-SPC.
Chong Yidong <cyd@stupidchicken.com>
parents: 77048
diff changeset
666 (define-key map "\e[27;6;13~" [C-S-return])
65314
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
667
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
668 ;; Other versions of xterm might emit these.
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
669 (define-key map "\e[A" [up])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
670 (define-key map "\e[B" [down])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
671 (define-key map "\e[C" [right])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
672 (define-key map "\e[D" [left])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
673 (define-key map "\e[1~" [home])
46065
3f4640971880 (function-key-map): Add some bindings.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 42947
diff changeset
674
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
675 (define-key map "\eO2A" [S-up])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
676 (define-key map "\eO2B" [S-down])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
677 (define-key map "\eO2C" [S-right])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
678 (define-key map "\eO2D" [S-left])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
679 (define-key map "\eO2F" [S-end])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
680 (define-key map "\eO2H" [S-home])
42947
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
681
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
682 (define-key map "\eO5A" [C-up])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
683 (define-key map "\eO5B" [C-down])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
684 (define-key map "\eO5C" [C-right])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
685 (define-key map "\eO5D" [C-left])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
686 (define-key map "\eO5F" [C-end])
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
687 (define-key map "\eO5H" [C-home])
40694
41fcf9864c4d (function-key-map): Add entry for `ESC [ 3 ~' -> <delete>
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 38431
diff changeset
688
65314
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
689 (define-key map "\e[11~" [f1])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
690 (define-key map "\e[12~" [f2])
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
691 (define-key map "\e[13~" [f3])
83635
9c01792a3ce8 Merge from emacs--devo--0
Miles Bader <miles@gnu.org>
parents: 83594 78005
diff changeset
692 (define-key map "\e[14~" [f4]))
65314
6c488c4c11c6 * term/xterm.el (terminal-init-xterm): Add eval-when-compile to
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64701
diff changeset
693
64651
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
694 (xterm-register-default-colors)
af1c58687bdd * term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents: 64597
diff changeset
695 ;; This recomputes all the default faces given the colors we've just set up.
83394
7d093d9d4479 Fix semantics of terminal-local variables. Remove `terminal-local-value' hack.
Karoly Lorentey <lorentey@elte.hu>
parents: 83383
diff changeset
696 (tty-set-up-initial-frame-faces))
38431
853c3674f20a Fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 14170
diff changeset
697
42947
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
698 ;; Set up colors, for those versions of xterm that support it.
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
699 (defvar xterm-standard-colors
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
700 ;; The names in the comments taken from XTerm-col.ad in the xterm
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
701 ;; distribution, see ftp://dickey.his.com/xterm/. RGB values are
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
702 ;; from rgb.txt.
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
703 '(("black" 0 ( 0 0 0)) ; black
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
704 ("red" 1 (205 0 0)) ; red3
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
705 ("green" 2 ( 0 205 0)) ; green3
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
706 ("yellow" 3 (205 205 0)) ; yellow3
61357
6596052b0a0d (xterm-standard-colors): Update color values from
Dan Nicolaescu <dann@ics.uci.edu>
parents: 60935
diff changeset
707 ("blue" 4 ( 0 0 238)) ; blue2
42947
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
708 ("magenta" 5 (205 0 205)) ; magenta3
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
709 ("cyan" 6 ( 0 205 205)) ; cyan3
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
710 ("white" 7 (229 229 229)) ; gray90
61357
6596052b0a0d (xterm-standard-colors): Update color values from
Dan Nicolaescu <dann@ics.uci.edu>
parents: 60935
diff changeset
711 ("brightblack" 8 (127 127 127)) ; gray50
42947
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
712 ("brightred" 9 (255 0 0)) ; red
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
713 ("brightgreen" 10 ( 0 255 0)) ; green
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
714 ("brightyellow" 11 (255 255 0)) ; yellow
61357
6596052b0a0d (xterm-standard-colors): Update color values from
Dan Nicolaescu <dann@ics.uci.edu>
parents: 60935
diff changeset
715 ("brightblue" 12 (92 92 255)) ; rgb:5c/5c/ff
42947
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
716 ("brightmagenta" 13 (255 0 255)) ; magenta
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
717 ("brightcyan" 14 ( 0 255 255)) ; cyan
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
718 ("brightwhite" 15 (255 255 255))) ; white
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
719 "Names of 16 standard xterm/aixterm colors, their numbers, and RGB values.")
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
720
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
721 (defun xterm-rgb-convert-to-16bit (prim)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
722 "Convert an 8-bit primary color value PRIM to a corresponding 16-bit value."
61409
6550784a652a (xterm-rgb-convert-to-16bit): Simplify.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61357
diff changeset
723 (logior prim (lsh prim 8)))
42947
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
724
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
725 (defun xterm-register-default-colors ()
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
726 "Register the default set of colors for xterm or compatible emulator.
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
727
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
728 This function registers the number of colors returned by `display-color-cells'
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
729 for the currently selected frame. The first 16 colors are taken from
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
730 `xterm-standard-colors', which see, while the rest are computed assuming
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
731 either the 88- or 256-color standard color scheme supported by latest
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
732 versions of xterm."
83008
040dd41ed7d0 Hookified termcap devices, added bootstrap display device, plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents: 52401
diff changeset
733 (let* ((ncolors (display-color-cells (selected-frame)))
42947
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
734 (colors xterm-standard-colors)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
735 (color (car colors)))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
736 (if (> ncolors 0)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
737 ;; Clear the 8 default tty colors registered by startup.el
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
738 (tty-color-clear))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
739 ;; Only register as many colors as are supported by the display.
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
740 (while (and (> ncolors 0) colors)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
741 (tty-color-define (car color) (cadr color)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
742 (mapcar 'xterm-rgb-convert-to-16bit
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
743 (car (cddr color))))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
744 (setq colors (cdr colors)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
745 color (car colors)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
746 ncolors (1- ncolors)))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
747 ;; We've exhausted the colors from `xterm-standard-colors'. If there
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
748 ;; are more colors to support, compute them now.
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
749 (when (> ncolors 0)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
750 (cond
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
751 ((= ncolors 240) ; 256-color xterm
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
752 ;; 216 non-gray colors first
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
753 (let ((r 0) (g 0) (b 0))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
754 (while (> ncolors 24)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
755 ;; This and other formulae taken from 256colres.pl and
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
756 ;; 88colres.pl in the xterm distribution.
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
757 (tty-color-define (format "color-%d" (- 256 ncolors))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
758 (- 256 ncolors)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
759 (mapcar 'xterm-rgb-convert-to-16bit
61409
6550784a652a (xterm-rgb-convert-to-16bit): Simplify.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61357
diff changeset
760 (list (if (zerop r) 0 (+ (* r 40) 55))
6550784a652a (xterm-rgb-convert-to-16bit): Simplify.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61357
diff changeset
761 (if (zerop g) 0 (+ (* g 40) 55))
6550784a652a (xterm-rgb-convert-to-16bit): Simplify.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61357
diff changeset
762 (if (zerop b) 0 (+ (* b 40) 55)))))
6550784a652a (xterm-rgb-convert-to-16bit): Simplify.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61357
diff changeset
763
42947
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
764 (setq b (1+ b))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
765 (if (> b 5)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
766 (setq g (1+ g)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
767 b 0))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
768 (if (> g 5)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
769 (setq r (1+ r)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
770 g 0))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
771 (setq ncolors (1- ncolors))))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
772 ;; Now the 24 gray colors
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
773 (while (> ncolors 0)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
774 (setq color (xterm-rgb-convert-to-16bit (+ 8 (* (- 24 ncolors) 10))))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
775 (tty-color-define (format "color-%d" (- 256 ncolors))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
776 (- 256 ncolors)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
777 (list color color color))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
778 (setq ncolors (1- ncolors))))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
779 ((= ncolors 72) ; 88-color xterm
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
780 ;; 64 non-gray colors
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
781 (let ((levels '(0 139 205 255))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
782 (r 0) (g 0) (b 0))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
783 (while (> ncolors 8)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
784 (tty-color-define (format "color-%d" (- 88 ncolors))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
785 (- 88 ncolors)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
786 (mapcar 'xterm-rgb-convert-to-16bit
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
787 (list (nth r levels)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
788 (nth g levels)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
789 (nth b levels))))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
790 (setq b (1+ b))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
791 (if (> b 3)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
792 (setq g (1+ g)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
793 b 0))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
794 (if (> g 3)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
795 (setq r (1+ r)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
796 g 0))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
797 (setq ncolors (1- ncolors))))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
798 ;; Now the 8 gray colors
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
799 (while (> ncolors 0)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
800 (setq color (xterm-rgb-convert-to-16bit
61409
6550784a652a (xterm-rgb-convert-to-16bit): Simplify.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 61357
diff changeset
801 (floor
42947
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
802 (if (= ncolors 8)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
803 46.36363636
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
804 (+ (* (- 8 ncolors) 23.18181818) 69.54545454)))))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
805 (tty-color-define (format "color-%d" (- 88 ncolors))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
806 (- 88 ncolors)
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
807 (list color color color))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
808 (setq ncolors (1- ncolors))))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
809 (t (error "Unsupported number of xterm colors (%d)" (+ 16 ncolors)))))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
810 ;; Modifying color mappings means realized faces don't use the
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
811 ;; right colors, so clear them.
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
812 (clear-face-cache)))
76e795715361 (xterm-standard-colors): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 40694
diff changeset
813
56979
f0f48b9999fa (function-key-map): Add bindings for C- and S- cursor
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
814 ;; arch-tag: 12e7ebdd-1e6c-4b25-b0f9-35ace25e855a
38431
853c3674f20a Fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 14170
diff changeset
815 ;;; xterm.el ends here