annotate lisp/term/iris-ansi.el @ 93197:212fa666680e

(decode_coding_object): When not decoding into a buffer, obey the coding system's preference of (uni|multi)byte.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 25 Mar 2008 16:02:32 +0000
parents 107ccd98fa12
children 606f2d163a64 f3ab0c2464f5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
47726
33d53d287ee4 Add "no-byte-compile: t" in first line.
Juanma Barranquero <lekktu@gmail.com>
parents: 38436
diff changeset
1 ;;; iris-ansi.el --- configure Emacs for SGI xwsh and winterm apps -*- no-byte-compile: t -*-
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
2
74509
f7702c5f335d Update copyright years.
Glenn Morris <rgm@gnu.org>
parents: 68648
diff changeset
3 ;; Copyright (C) 1997, 2001, 2002, 2003, 2004, 2005,
79718
f1713f61ee49 Add 2008 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 78226
diff changeset
4 ;; 2006, 2007, 2008 Free Software Foundation, Inc.
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
5
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
6 ;; Author: Dan Nicolaescu <dann@ics.uci.edu>
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
7
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
9
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
78226
030ae62d5c57 Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents: 75347
diff changeset
12 ;; the Free Software Foundation; either version 3, or (at your option)
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
13 ;; any later version.
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
14
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
18 ;; GNU General Public License for more details.
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
19
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
21 ;; 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: 52401
diff changeset
22 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
a8fa7c632ee4 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 52401
diff changeset
23 ;; Boston, MA 02110-1301, USA.
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
24
38436
b174db545cfd Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 23367
diff changeset
25 ;;; Commentary:
b174db545cfd Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 23367
diff changeset
26
b174db545cfd Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 23367
diff changeset
27 ;;; Code:
b174db545cfd Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 23367
diff changeset
28
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
29 (defvar iris-function-map
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
30 (let ((map (make-sparse-keymap)))
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
31
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
32 (define-key map "\e[120q" [S-escape])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
33 (define-key map "\e[121q" [C-escape])
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
34
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
35 (define-key map "\e[001q" [f1])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
36 (define-key map "\e[013q" [S-f1])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
37 (define-key map "\e[025q" [C-f1])
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
38
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
39
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
40 (define-key map "\e[002q" [f2])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
41 (define-key map "\e[014q" [S-f2])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
42 (define-key map "\e[026q" [C-f2])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
43 (define-key map "\e[038q" [M-f2])
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
44
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
45 (define-key map "\e[003q" [f3])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
46 (define-key map "\e[015q" [S-f3])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
47 (define-key map "\e[027q" [C-f3])
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
48
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
49
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
50 (define-key map "\e[004q" [f4])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
51 (define-key map "\e[016q" [S-f4])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
52 (define-key map "\e[028q" [C-f4])
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
53
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
54
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
55 (define-key map "\e[005q" [f5])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
56 (define-key map "\e[017q" [S-f5])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
57 (define-key map "\e[029q" [C-f5])
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
58
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
59
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
60 (define-key map "\e[006q" [f6])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
61 (define-key map "\e[018q" [S-f6])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
62 (define-key map "\e[030q" [C-f6])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
63
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
64
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
65 (define-key map "\e[007q" [f7])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
66 (define-key map "\e[019q" [S-f7])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
67 (define-key map "\e[031q" [C-f7])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
68
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
69
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
70 (define-key map "\e[008q" [f8])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
71 (define-key map "\e[020q" [S-f8])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
72 (define-key map "\e[032q" [C-f8])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
73
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
74
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
75 (define-key map "\e[009q" [f9])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
76 (define-key map "\e[021q" [S-f9])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
77 (define-key map "\e[033q" [C-f9])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
78
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
79
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
80 (define-key map "\e[010q" [f10])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
81 (define-key map "\e[022q" [S-f10])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
82 (define-key map "\e[034q" [C-f10])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
83
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
84
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
85 (define-key map "\e[011q" [f11])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
86 (define-key map "\e[023q" [S-f11])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
87 (define-key map "\e[035q" [C-f11])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
88 (define-key map "\e[047q" [M-f11])
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
89
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
90 (define-key map "\e[012q" [f12])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
91 (define-key map "\e[024q" [S-f12])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
92 (define-key map "\e[036q" [C-f12])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
93 (define-key map "\e[048q" [M-f12])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
94
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
95
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
96 (define-key map "\e[057q" [?\C-`])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
97 (define-key map "\e[115q" [?\M-`])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
98
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
99 (define-key map "\e[049q" [?\C-1])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
100 (define-key map "\e[058q" [?\M-1])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
101
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
102
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
103 (define-key map "\e[059q" [?\M-2])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
104
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
105 (define-key map "\e[050q" [?\C-3])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
106 (define-key map "\e[060q" [?\M-3])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
107
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
108 (define-key map "\e[051q" [?\C-4])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
109 (define-key map "\e[061q" [?\M-4])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
110
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
111 (define-key map "\e[052q" [?\C-5])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
112 (define-key map "\e[062q" [?\M-5])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
113
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
114
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
115 (define-key map "\e[063q" [?\M-6])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
116
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
117 (define-key map "\e[053q" [?\C-7])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
118 (define-key map "\e[064q" [?\M-7])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
119
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
120 (define-key map "\e[054q" [?\C-8])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
121 (define-key map "\e[065q" [?\M-8])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
122
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
123 (define-key map "\e[055q" [?\C-9])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
124 (define-key map "\e[066q" [?\M-9])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
125
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
126 (define-key map "\e[056q" [?\C-0])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
127 (define-key map "\e[067q" [?\M-0])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
128
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
129 (define-key map "\e[068q" [?\M--])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
130
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
131 (define-key map "\e[069q" [?\C-=])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
132 (define-key map "\e[070q" [?\M-=])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
133
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
134 ;; I don't know what to do with those.
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
135 ;;(define-key map "^H" [<del>])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
136 ;;(define-key map "^H" [S-<del>])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
137 ;;(define-key map "\177" [C-<del>])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
138 ;;(define-key map "\e[071q" [M-<del>])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
139
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
140 (define-key map "\e[Z" [?\S-\t])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
141 (define-key map "\e[072q" [?\C-\t])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
142 ;; This only works if you remove the M-TAB keybing from the system.4Dwmrc
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
143 ;; our your ~/.4Dwmrc, if you use the 4Dwm window manager.
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
144 (define-key map "\e[073q" [?\M-\t])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
145
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
146 (define-key map "\e[074q" [?\M-q])
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
147
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
148 (define-key map "\e[075q" [?\M-w])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
149
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
150 (define-key map "\e[076q" [?\M-e])
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
151
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
152 (define-key map "\e[077q" [?\M-r])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
153
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
154 (define-key map "\e[078q" [?\M-t])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
155
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
156 (define-key map "\e[079q" [?\M-y])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
157
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
158 (define-key map "\e[080q" [?\M-u])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
159
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
160 (define-key map "\e[081q" [?\M-i])
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
161
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
162 (define-key map "\e[082q" [?\M-o])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
163
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
164 (define-key map "\e[083q" [?\M-p])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
165
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
166 (define-key map "\e[084q" [?\M-\[])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
167
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
168 (define-key map "\e[085q" [?\M-\]])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
169
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
170 (define-key map "\e[086q" [?\M-\\])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
171
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
172 (define-key map "\e[087q" [?\M-a])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
173
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
174 (define-key map "\e[088q" [?\M-s])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
175
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
176 (define-key map "\e[089q" [?\M-d])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
177
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
178 (define-key map "\e[090q" [?\M-f])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
179
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
180 (define-key map "\e[091q" [?\M-g])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
181
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
182 (define-key map "\e[092q" [?\M-h])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
183
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
184 (define-key map "\e[093q" [?\M-j])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
185
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
186 (define-key map "\e[094q" [?\M-k])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
187
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
188 (define-key map "\e[095q" [?\M-l])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
189
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
190 (define-key map "\e[096q" [?\C-\;])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
191 ;; We are cheating here, this is really M-;, but M-: generates the same
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
192 ;; string and is more useful.
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
193 (define-key map "\e[097q" [?\M-:])
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
194
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
195 (define-key map "\e[098q" [?\C-'])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
196 (define-key map "\e[099q" [?\M-'])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
197
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
198 (define-key map "\e[100q" [?\M-\n])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
199
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
200 (define-key map "\e[101q" [?\M-z])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
201
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
202 (define-key map "\e[102q" [?\M-x])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
203
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
204 (define-key map "\e[103q" [?\M-c])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
205
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
206 (define-key map "\e[104q" [?\M-v])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
207
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
208 (define-key map "\e[105q" [?\M-b])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
209
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
210 (define-key map "\e[106q" [M-n])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
211
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
212 (define-key map "\e[107q" [M-m])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
213
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
214 (define-key map "\e[108q" [?\C-,])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
215 (define-key map "\e[109q" [?\M-,])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
216
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
217 (define-key map "\e[110q" [?\C-.])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
218 (define-key map "\e[111q" [?\M-.])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
219
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
220 (define-key map "\e[112q" [?\C-/])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
221 (define-key map "\e[113q" [?\M-/])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
222
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
223 (define-key map "\e[139q" [insert])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
224 (define-key map "\e[139q" [S-insert])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
225 (define-key map "\e[140q" [C-insert])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
226 (define-key map "\e[141q" [M-insert])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
227
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
228 (define-key map "\e[H" [home])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
229 (define-key map "\e[143q" [S-home])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
230 (define-key map "\e[144q" [C-home])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
231
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
232
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
233 (define-key map "\e[150q" [prior])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
234 (define-key map "\e[151q" [S-prior]) ;Those don't seem to generate anything.
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
235 (define-key map "\e[152q" [C-prior])
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
236
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
237
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
238 ;; (define-key map "^?" [delete]) ?? something else seems to take care of this.
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
239 (define-key map "\e[P" [S-delete])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
240 (define-key map "\e[142q" [C-delete])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
241 (define-key map "\e[M" [M-delete])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
242
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
243 (define-key map "\e[146q" [end])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
244 (define-key map "\e[147q" [S-end]) ; Those don't seem to generate anything.
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
245 (define-key map "\e[148q" [C-end])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
246
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
247 (define-key map "\e[154q" [next])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
248 (define-key map "\e[155q" [S-next])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
249 (define-key map "\e[156q" [C-next])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
250
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
251
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
252 (define-key map "\e[161q" [S-up])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
253 (define-key map "\e[162q" [C-up])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
254 (define-key map "\e[163q" [M-up])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
255
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
256 (define-key map "\e[158q" [S-left])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
257 (define-key map "\e[159q" [C-left])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
258 (define-key map "\e[160q" [M-left])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
259
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
260 (define-key map "\e[164q" [S-down])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
261 (define-key map "\e[165q" [C-down])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
262 (define-key map "\e[166q" [M-down])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
263
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
264 (define-key map "\e[167q" [S-right])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
265 (define-key map "\e[168q" [C-right])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
266 (define-key map "\e[169q" [M-right])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
267
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
268 ;; Keypad functions, most of those are untested.
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
269 (define-key map "\e[179q" [?\C-/])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
270 (define-key map "\e[180q" [?\M-/])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
271
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
272 (define-key map "\e[187q" [?\C-*])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
273 (define-key map "\e[188q" [?\M-*])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
274
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
275 (define-key map "\e[198q" [?\C--])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
276 (define-key map "\e[199q" [?\M--])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
277
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
278 ;; Something else takes care of home, up, prior, down, left, right, next
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
279 ;;(define-key map "\e[H" [home])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
280 (define-key map "\e[172q" [C-home])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
281
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
282 ;;(define-key map "\e[A" [up])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
283 (define-key map "\e[182q" [C-up])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
284
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
285
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
286 ;;(define-key map "\e[150q" [prior])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
287 (define-key map "\e[190q" [C-prior])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
288
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
289
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
290 (define-key map "\e[200q" [?\C-+])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
291 (define-key map "\e[201q" [?\M-+])
83316
102194c6d773 Update Lisp code for a terminal-local `function-key-map'.
Karoly Lorentey <lorentey@elte.hu>
parents: 83297
diff changeset
292
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
293 ;;(define-key map "\e[D" [left])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
294 (define-key map "\e[174q" [C-left])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
295
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
296
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
297 (define-key map "\e[000q" [begin])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
298 (define-key map "\e[184q" [C-begin])
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
299
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
300
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
301 ;;(define-key map "\e[C" [right])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
302 (define-key map "\e[192q" [C-right])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
303
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
304 ;;(define-key map "\e[146q" [end])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
305 (define-key map "\e[176q" [C-end])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
306
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
307 ;;(define-key map "\e[B" [down])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
308 (define-key map "\e[186q" [C-down])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
309
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
310 ;;(define-key map "\e[154q" [next])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
311 (define-key map "\e[194q" [C-next])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
312
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
313 (define-key map "\e[100q" [M-enter])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
314
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
315 (define-key map "\e[139q" [insert])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
316 (define-key map "\e[178q" [C-inset])
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
317
85612
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
318 (define-key map "\e[P" [delete])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
319 (define-key map "\e[196q" [C-delete])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
320 (define-key map "\e[197q" [M-delete])
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
321 map)
35afe0eebae6 (iris-function-map): Move initialization into declaration.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 85546
diff changeset
322 "Function key definitions for SGI xwsh and winterm apps.")
64701
34bd8e434dd7 Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64651
diff changeset
323
83353
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 64701
diff changeset
324 (defun terminal-init-iris-ansi ()
532e0a9335a9 Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Karoly Lorentey <lorentey@elte.hu>
parents: 83346 64701
diff changeset
325 "Terminal initialization function for iris-ansi."
83524
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83468
diff changeset
326 ;; Use inheritance to let the main keymap override these defaults.
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83468
diff changeset
327 ;; This way we don't override terminfo-derived settings or settings
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83468
diff changeset
328 ;; made in the .emacs file.
673d62ad74b5 Fix and/or simplify terminal initialization files.
Karoly Lorentey <lorentey@elte.hu>
parents: 83468
diff changeset
329 (let ((m (copy-keymap iris-function-map)))
85546
d3c6c7427cef * term/news.el (terminal-init-news):
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 83648
diff changeset
330 (set-keymap-parent m (keymap-parent input-decode-map))
d3c6c7427cef * term/news.el (terminal-init-news):
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 83648
diff changeset
331 (set-keymap-parent input-decode-map m)))
23367
7355f4d47dfa Initial revision
Dan Nicolaescu <done@ece.arizona.edu>
parents:
diff changeset
332
85546
d3c6c7427cef * term/news.el (terminal-init-news):
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 83648
diff changeset
333 ;; arch-tag: b1d0e73a-bb7d-47be-9fb2-6fb126469a1b
38436
b174db545cfd Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 23367
diff changeset
334 ;;; iris-ansi.el ends here