aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/term
diff options
context:
space:
mode:
authorKaroly Lorentey2005-04-18 13:40:23 +0000
committerKaroly Lorentey2005-04-18 13:40:23 +0000
commit6ab9dd8034fcd76f5d2e92a91243f8d8be3a8f98 (patch)
treea40a6371728d46bdfb26b7090612e0ca70e1c057 /lisp/term
parent91fd98fc1eff12aa5a46142efabababa7daf77bb (diff)
parentd4127a9a1111805640eaa06e9767a7a6f56351a5 (diff)
downloademacs-6ab9dd8034fcd76f5d2e92a91243f8d8be3a8f98.tar.gz
emacs-6ab9dd8034fcd76f5d2e92a91243f8d8be3a8f98.zip
Merged from miles@gnu.org--gnu-2005 (patch 60-65, 246-265)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-246 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-247 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-248 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-249 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-250 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-251 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-252 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-253 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-254 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-255 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-256 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-257 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-258 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-259 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-260 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-261 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-262 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-263 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-264 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-265 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-60 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-61 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-62 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-63 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-64 (mm-string-to-multibyte): Use Gnus trunk definition. * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-65 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-328
Diffstat (limited to 'lisp/term')
-rw-r--r--lisp/term/mac-win.el154
-rw-r--r--lisp/term/w32-win.el6
-rw-r--r--lisp/term/xterm.el80
3 files changed, 162 insertions, 78 deletions
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el
index cdf81f02ce2..d5fd541c727 100644
--- a/lisp/term/mac-win.el
+++ b/lisp/term/mac-win.el
@@ -77,7 +77,7 @@
77;;(require 'select) 77;;(require 'select)
78(require 'menu-bar) 78(require 'menu-bar)
79(require 'fontset) 79(require 'fontset)
80(require 'x-dnd) 80(require 'dnd)
81 81
82(defvar x-invocation-args) 82(defvar x-invocation-args)
83 83
@@ -1085,13 +1085,38 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
1085(put 'escape 'ascii-character ?\e) 1085(put 'escape 'ascii-character ?\e)
1086 1086
1087 1087
1088;;;; Keysyms 1088;;;; Script codes and coding systems
1089 1089(defconst mac-script-code-coding-systems
1090;; Define constant values to be set to mac-keyboard-text-encoding 1090 '((0 . mac-roman) ; smRoman
1091(defconst kTextEncodingMacRoman 0) 1091 (1 . japanese-shift-jis) ; smJapanese
1092(defconst kTextEncodingISOLatin1 513 "0x201") 1092 (2 . chinese-big5) ; smTradChinese
1093(defconst kTextEncodingISOLatin2 514 "0x202") 1093 (3 . korean-iso-8bit) ; smKorean
1094 1094 (7 . mac-cyrillic) ; smCyrillic
1095 (25 . chinese-iso-8bit) ; smSimpChinese
1096 (29 . mac-centraleurroman) ; smCentralEuroRoman
1097 )
1098 "Alist of Mac script codes vs Emacs coding systems.")
1099
1100(defconst mac-system-coding-system
1101 (let ((base (or (cdr (assq mac-system-script-code
1102 mac-script-code-coding-systems))
1103 'mac-roman)))
1104 (if (eq system-type 'darwin)
1105 base
1106 (coding-system-change-eol-conversion base 'mac)))
1107 "Coding system derived from the system script code.")
1108
1109;;;; Keyboard layout/language change events
1110(defun mac-handle-language-change (event)
1111 (interactive "e")
1112 (let ((coding-system
1113 (cdr (assq (car (cadr event)) mac-script-code-coding-systems))))
1114 (set-keyboard-coding-system (or coding-system 'mac-roman))
1115 ;; MacJapanese maps reverse solidus to ?\x80.
1116 (if (eq coding-system 'japanese-shift-jis)
1117 (define-key key-translation-map [?\x80] "\\"))))
1118
1119(define-key special-event-map [language-change] 'mac-handle-language-change)
1095 1120
1096;;;; Selections and cut buffers 1121;;;; Selections and cut buffers
1097 1122
@@ -1139,21 +1164,14 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
1139 1164
1140(setq frame-creation-function 'x-create-frame-with-faces) 1165(setq frame-creation-function 'x-create-frame-with-faces)
1141 1166
1142(define-ccl-program ccl-encode-mac-roman-font 1167(cp-make-coding-system
1143 `(0 1168 mac-centraleurroman
1144 (if (r0 != ,(charset-id 'ascii)) 1169 (apply
1145 (if (r0 <= ?\x8f) 1170 'vector
1146 (translate-character mac-roman-encoder r0 r1) 1171 (mapcar
1147 ((r1 <<= 7) 1172 (lambda (c) (decode-char 'ucs c))
1148 (r1 |= r2) 1173 ;; mac-centraleurroman (128..255) -> UCS mapping
1149 (translate-character mac-roman-encoder r0 r1))))) 1174 [ #x00C4 ;; 128:LATIN CAPITAL LETTER A WITH DIAERESIS
1150 "CCL program for Mac Roman font")
1151
1152(let
1153 ((encoding-vector (make-vector 256 nil))
1154 (i 0)
1155 (vec ;; mac-centraleurroman (128..255) -> UCS mapping
1156 [ #x00C4 ;; 128:LATIN CAPITAL LETTER A WITH DIAERESIS
1157 #x0100 ;; 129:LATIN CAPITAL LETTER A WITH MACRON 1175 #x0100 ;; 129:LATIN CAPITAL LETTER A WITH MACRON
1158 #x0101 ;; 130:LATIN SMALL LETTER A WITH MACRON 1176 #x0101 ;; 130:LATIN SMALL LETTER A WITH MACRON
1159 #x00C9 ;; 131:LATIN CAPITAL LETTER E WITH ACUTE 1177 #x00C9 ;; 131:LATIN CAPITAL LETTER E WITH ACUTE
@@ -1281,26 +1299,18 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
1281 #x017C ;; 253:LATIN SMALL LETTER Z WITH DOT ABOVE 1299 #x017C ;; 253:LATIN SMALL LETTER Z WITH DOT ABOVE
1282 #x0122 ;; 254:LATIN CAPITAL LETTER G WITH CEDILLA 1300 #x0122 ;; 254:LATIN CAPITAL LETTER G WITH CEDILLA
1283 #x02C7 ;; 255:CARON 1301 #x02C7 ;; 255:CARON
1284 ]) 1302 ]))
1285 translation-table) 1303 "Mac Central European Roman Encoding (MIME:x-mac-centraleurroman).")
1286 (while (< i 128) 1304(coding-system-put 'mac-centraleurroman 'mime-charset 'x-mac-centraleurroman)
1287 (aset encoding-vector i i) 1305
1288 (setq i (1+ i))) 1306(cp-make-coding-system
1289 (while (< i 256) 1307 mac-cyrillic
1290 (aset encoding-vector i 1308 (apply
1291 (decode-char 'ucs (aref vec (- i 128)))) 1309 'vector
1292 (setq i (1+ i))) 1310 (mapcar
1293 (setq translation-table 1311 (lambda (c) (decode-char 'ucs c))
1294 (make-translation-table-from-vector encoding-vector)) 1312 ;; mac-cyrillic (128..255) -> UCS mapping
1295;; (define-translation-table 'mac-centraleurroman-decoder translation-table) 1313 [ #x0410 ;; 128:CYRILLIC CAPITAL LETTER A
1296 (define-translation-table 'mac-centraleurroman-encoder
1297 (char-table-extra-slot translation-table 0)))
1298
1299(let
1300 ((encoding-vector (make-vector 256 nil))
1301 (i 0)
1302 (vec ;; mac-cyrillic (128..255) -> UCS mapping
1303 [ #x0410 ;; 128:CYRILLIC CAPITAL LETTER A
1304 #x0411 ;; 129:CYRILLIC CAPITAL LETTER BE 1314 #x0411 ;; 129:CYRILLIC CAPITAL LETTER BE
1305 #x0412 ;; 130:CYRILLIC CAPITAL LETTER VE 1315 #x0412 ;; 130:CYRILLIC CAPITAL LETTER VE
1306 #x0413 ;; 131:CYRILLIC CAPITAL LETTER GHE 1316 #x0413 ;; 131:CYRILLIC CAPITAL LETTER GHE
@@ -1428,27 +1438,16 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
1428 #x044D ;; 253:CYRILLIC SMALL LETTER E 1438 #x044D ;; 253:CYRILLIC SMALL LETTER E
1429 #x044E ;; 254:CYRILLIC SMALL LETTER YU 1439 #x044E ;; 254:CYRILLIC SMALL LETTER YU
1430 #x20AC ;; 255:EURO SIGN 1440 #x20AC ;; 255:EURO SIGN
1431 ]) 1441 ]))
1432 translation-table) 1442 "Mac Cyrillic Encoding (MIME:x-mac-cyrillic).")
1433 (while (< i 128) 1443(coding-system-put 'mac-cyrillic 'mime-charset 'x-mac-cyrillic)
1434 (aset encoding-vector i i)
1435 (setq i (1+ i)))
1436 (while (< i 256)
1437 (aset encoding-vector i
1438 (decode-char 'ucs (aref vec (- i 128))))
1439 (setq i (1+ i)))
1440 (setq translation-table
1441 (make-translation-table-from-vector encoding-vector))
1442;; (define-translation-table 'mac-cyrillic-decoder translation-table)
1443 (define-translation-table 'mac-cyrillic-encoder
1444 (char-table-extra-slot translation-table 0)))
1445 1444
1446(defvar mac-font-encoder-list 1445(defvar mac-font-encoder-list
1447 '(("mac-roman" mac-roman-encoder 1446 '(("mac-roman" mac-roman-encoder
1448 ccl-encode-mac-roman-font "%s") 1447 ccl-encode-mac-roman-font "%s")
1449 ("mac-centraleurroman" mac-centraleurroman-encoder 1448 ("mac-centraleurroman" encode-mac-centraleurroman
1450 ccl-encode-mac-centraleurroman-font "%s ce") 1449 ccl-encode-mac-centraleurroman-font "%s ce")
1451 ("mac-cyrillic" mac-cyrillic-encoder 1450 ("mac-cyrillic" encode-mac-cyrillic
1452 ccl-encode-mac-cyrillic-font "%s cy"))) 1451 ccl-encode-mac-cyrillic-font "%s cy")))
1453 1452
1454(let ((encoder-list 1453(let ((encoder-list
@@ -1468,24 +1467,34 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
1468 (if mac-encoded 1467 (if mac-encoded
1469 (aset table c mac-encoded)))))))) 1468 (aset table c mac-encoded))))))))
1470 1469
1470(define-ccl-program ccl-encode-mac-roman-font
1471 `(0
1472 (if (r0 != ,(charset-id 'ascii))
1473 (if (r0 <= ?\x8f)
1474 (translate-character mac-roman-encoder r0 r1)
1475 ((r1 <<= 7)
1476 (r1 |= r2)
1477 (translate-character mac-roman-encoder r0 r1)))))
1478 "CCL program for Mac Roman font")
1479
1471(define-ccl-program ccl-encode-mac-centraleurroman-font 1480(define-ccl-program ccl-encode-mac-centraleurroman-font
1472 `(0 1481 `(0
1473 (if (r0 != ,(charset-id 'ascii)) 1482 (if (r0 != ,(charset-id 'ascii))
1474 (if (r0 <= ?\x8f) 1483 (if (r0 <= ?\x8f)
1475 (translate-character mac-centraleurroman-encoder r0 r1) 1484 (translate-character encode-mac-centraleurroman r0 r1)
1476 ((r1 <<= 7) 1485 ((r1 <<= 7)
1477 (r1 |= r2) 1486 (r1 |= r2)
1478 (translate-character mac-centraleurroman-encoder r0 r1))))) 1487 (translate-character encode-mac-centraleurroman r0 r1)))))
1479 "CCL program for Mac Central European Roman font") 1488 "CCL program for Mac Central European Roman font")
1480 1489
1481(define-ccl-program ccl-encode-mac-cyrillic-font 1490(define-ccl-program ccl-encode-mac-cyrillic-font
1482 `(0 1491 `(0
1483 (if (r0 != ,(charset-id 'ascii)) 1492 (if (r0 != ,(charset-id 'ascii))
1484 (if (r0 <= ?\x8f) 1493 (if (r0 <= ?\x8f)
1485 (translate-character mac-cyrillic-encoder r0 r1) 1494 (translate-character encode-mac-cyrillic r0 r1)
1486 ((r1 <<= 7) 1495 ((r1 <<= 7)
1487 (r1 |= r2) 1496 (r1 |= r2)
1488 (translate-character mac-cyrillic-encoder r0 r1))))) 1497 (translate-character encode-mac-cyrillic r0 r1)))))
1489 "CCL program for Mac Cyrillic font") 1498 "CCL program for Mac Cyrillic font")
1490 1499
1491 1500
@@ -1648,8 +1657,8 @@ Switch to a buffer editing the last file dropped."
1648 (if (and (> start 0) (> end 0)) 1657 (if (and (> start 0) (> end 0))
1649 (progn (set-mark start) 1658 (progn (set-mark start)
1650 (goto-char end))))) 1659 (goto-char end)))))
1651 (x-dnd-handle-one-url window 'private 1660 (dnd-handle-one-url window 'private
1652 (concat "file:" file-name)))) 1661 (concat "file:" file-name))))
1653 (car (cdr (cdr event))))) 1662 (car (cdr (cdr event)))))
1654 (raise-frame)) 1663 (raise-frame))
1655 1664
@@ -1739,14 +1748,11 @@ Switch to a buffer editing the last file dropped."
1739 ;; started (see run_mac_command in sysdep.c). 1748 ;; started (see run_mac_command in sysdep.c).
1740 (setq shell-file-name "sh") 1749 (setq shell-file-name "sh")
1741 1750
1742 ;; To display filenames in Chinese or Japanese, replace mac-roman with 1751 ;; Some system variables are encoded with the system script code.
1743 ;; big5 or sjis 1752 (dolist (v '(system-name
1744 (setq file-name-coding-system 'mac-roman)) 1753 emacs-build-system ; Mac OS 9 version cannot dump
1745 1754 user-login-name user-real-login-name user-full-name))
1746;; X Window emulation in macterm.c is not complete enough to start a 1755 (set v (decode-coding-string (symbol-value v) mac-system-coding-system))))
1747;; frame without a minibuffer properly. Call this to tell ediff
1748;; library to use a single frame.
1749; (ediff-toggle-multiframe)
1750 1756
1751;; If Emacs is started from the Finder, change the default directory 1757;; If Emacs is started from the Finder, change the default directory
1752;; to the user's home directory. 1758;; to the user's home directory.
@@ -1763,7 +1769,5 @@ Switch to a buffer editing the last file dropped."
1763;; or bold bitmap versions will not display these variants correctly. 1769;; or bold bitmap versions will not display these variants correctly.
1764(setq scalable-fonts-allowed t) 1770(setq scalable-fonts-allowed t)
1765 1771
1766;; (prefer-coding-system 'mac-roman)
1767
1768;; arch-tag: 71dfcd14-cde8-4d66-b05c-85ec94fb23a6 1772;; arch-tag: 71dfcd14-cde8-4d66-b05c-85ec94fb23a6
1769;;; mac-win.el ends here 1773;;; mac-win.el ends here
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el
index 69e5c0e793b..862f3fe1d0a 100644
--- a/lisp/term/w32-win.el
+++ b/lisp/term/w32-win.el
@@ -76,7 +76,7 @@
76(require 'faces) 76(require 'faces)
77(require 'select) 77(require 'select)
78(require 'menu-bar) 78(require 'menu-bar)
79(require 'x-dnd) 79(require 'dnd)
80(require 'code-pages) 80(require 'code-pages)
81 81
82;; Conditional on new-fontset so bootstrapping works on non-GUI compiles 82;; Conditional on new-fontset so bootstrapping works on non-GUI compiles
@@ -109,8 +109,8 @@ Switch to a buffer editing the last file dropped."
109 (if (and (> x 0) (> y 0)) 109 (if (and (> x 0) (> y 0))
110 (set-frame-selected-window nil window)) 110 (set-frame-selected-window nil window))
111 (mapcar (lambda (file-name) 111 (mapcar (lambda (file-name)
112 (x-dnd-handle-one-url window 'private 112 (dnd-handle-one-url window 'private
113 (concat "file:" file-name))) 113 (concat "file:" file-name)))
114 (car (cdr (cdr event))))) 114 (car (cdr (cdr event)))))
115 (raise-frame))) 115 (raise-frame)))
116 116
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el
index d9de658c158..96f79f6c864 100644
--- a/lisp/term/xterm.el
+++ b/lisp/term/xterm.el
@@ -53,15 +53,85 @@
53 (define-key map "\e[24~" [f12]) 53 (define-key map "\e[24~" [f12])
54 (define-key map "\e[29~" [print]) 54 (define-key map "\e[29~" [print])
55 55
56 (define-key map "\e[11;2~" [S-f1])
57 (define-key map "\e[12;2~" [S-f2])
58 (define-key map "\e[13;2~" [S-f3])
59 (define-key map "\e[14;2~" [S-f4])
60 (define-key map "\e[15;2~" [S-f5])
61 (define-key map "\e[17;2~" [S-f6])
62 (define-key map "\e[18;2~" [S-f7])
63 (define-key map "\e[19;2~" [S-f8])
64 (define-key map "\e[20;2~" [S-f9])
65 (define-key map "\e[21;2~" [S-f10])
66 (define-key map "\e[23;2~" [S-f11])
67 (define-key map "\e[24;2~" [S-f12])
68
69 (define-key map "\e[11;5~" [C-f1])
70 (define-key map "\e[12;5~" [C-f2])
71 (define-key map "\e[13;5~" [C-f3])
72 (define-key map "\e[14;5~" [C-f4])
73 (define-key map "\e[15;5~" [C-f5])
74 (define-key map "\e[17;5~" [C-f6])
75 (define-key map "\e[18;5~" [C-f7])
76 (define-key map "\e[19;5~" [C-f8])
77 (define-key map "\e[20;5~" [C-f9])
78 (define-key map "\e[21;5~" [C-f10])
79 (define-key map "\e[23;5~" [C-f11])
80 (define-key map "\e[24;5~" [C-f12])
81
82 (define-key map "\e[11;6~" [C-S-f1])
83 (define-key map "\e[12;6~" [C-S-f2])
84 (define-key map "\e[13;6~" [C-S-f3])
85 (define-key map "\e[14;6~" [C-S-f4])
86 (define-key map "\e[15;6~" [C-S-f5])
87 (define-key map "\e[17;6~" [C-S-f6])
88 (define-key map "\e[18;6~" [C-S-f7])
89 (define-key map "\e[19;6~" [C-S-f8])
90 (define-key map "\e[20;6~" [C-S-f9])
91 (define-key map "\e[21;6~" [C-S-f10])
92 (define-key map "\e[23;6~" [C-S-f11])
93 (define-key map "\e[24;6~" [C-S-f12])
94
95 (define-key map "\e[11;3~" [A-f1])
96 (define-key map "\e[12;3~" [A-f2])
97 (define-key map "\e[13;3~" [A-f3])
98 (define-key map "\e[14;3~" [A-f4])
99 (define-key map "\e[15;3~" [A-f5])
100 (define-key map "\e[17;3~" [A-f6])
101 (define-key map "\e[18;3~" [A-f7])
102 (define-key map "\e[19;3~" [A-f8])
103 (define-key map "\e[20;3~" [A-f9])
104 (define-key map "\e[21;3~" [A-f10])
105 (define-key map "\e[23;3~" [A-f11])
106 (define-key map "\e[24;3~" [A-f12])
107
56 (define-key map "\e[1;2A" [S-up]) 108 (define-key map "\e[1;2A" [S-up])
57 (define-key map "\e[1;2B" [S-down]) 109 (define-key map "\e[1;2B" [S-down])
58 (define-key map "\e[1;2C" [S-right]) 110 (define-key map "\e[1;2C" [S-right])
59 (define-key map "\e[1;2D" [S-left]) 111 (define-key map "\e[1;2D" [S-left])
112 (define-key map "\e[1;2F" [S-end])
113 (define-key map "\e[1;2H" [S-home])
60 114
61 (define-key map "\e[1;5A" [C-up]) 115 (define-key map "\e[1;5A" [C-up])
62 (define-key map "\e[1;5B" [C-down]) 116 (define-key map "\e[1;5B" [C-down])
63 (define-key map "\e[1;5C" [C-right]) 117 (define-key map "\e[1;5C" [C-right])
64 (define-key map "\e[1;5D" [C-left]) 118 (define-key map "\e[1;5D" [C-left])
119 (define-key map "\e[1;5F" [C-end])
120 (define-key map "\e[1;5H" [C-home])
121
122 (define-key map "\e[1;6A" [C-S-up])
123 (define-key map "\e[1;6B" [C-S-down])
124 (define-key map "\e[1;6C" [C-S-right])
125 (define-key map "\e[1;6D" [C-S-left])
126 (define-key map "\e[1;6F" [C-S-end])
127 (define-key map "\e[1;6H" [C-S-home])
128
129 (define-key map "\e[1;3A" [A-up])
130 (define-key map "\e[1;3B" [A-down])
131 (define-key map "\e[1;3C" [A-right])
132 (define-key map "\e[1;3D" [A-left])
133 (define-key map "\e[1;3F" [A-end])
134 (define-key map "\e[1;3H" [A-home])
65 135
66 (define-key map "\e[2;2~" [S-insert]) 136 (define-key map "\e[2;2~" [S-insert])
67 (define-key map "\e[3;2~" [S-delete]) 137 (define-key map "\e[3;2~" [S-delete])
@@ -73,6 +143,16 @@
73 (define-key map "\e[5;5~" [C-prior]) 143 (define-key map "\e[5;5~" [C-prior])
74 (define-key map "\e[6;5~" [C-next]) 144 (define-key map "\e[6;5~" [C-next])
75 145
146 (define-key map "\e[2;6~" [C-S-insert])
147 (define-key map "\e[3;6~" [C-S-delete])
148 (define-key map "\e[5;6~" [C-S-prior])
149 (define-key map "\e[6;6~" [C-S-next])
150
151 (define-key map "\e[2;3~" [A-insert])
152 (define-key map "\e[3;3~" [A-delete])
153 (define-key map "\e[5;3~" [A-prior])
154 (define-key map "\e[6;3~" [A-next])
155
76 (define-key map "\eOA" [up]) 156 (define-key map "\eOA" [up])
77 (define-key map "\eOB" [down]) 157 (define-key map "\eOB" [down])
78 (define-key map "\eOC" [right]) 158 (define-key map "\eOC" [right])