comparison lisp/term/tvi970.el @ 74:54cc21c15cbb r20-0b32

Import from CVS: tag r20-0b32
author cvs
date Mon, 13 Aug 2007 09:04:33 +0200
parents 131b0175ea99
children
comparison
equal deleted inserted replaced
73:e2d7a37b7c8d 74:54cc21c15cbb
3 ;; Author: Jim Blandy <jimb@occs.cs.oberlin.edu>, January 1992 3 ;; Author: Jim Blandy <jimb@occs.cs.oberlin.edu>, January 1992
4 ;; Keywords: terminals 4 ;; Keywords: terminals
5 5
6 ;; Copyright (C) 1992 Free Software Foundation, Inc. 6 ;; Copyright (C) 1992 Free Software Foundation, Inc.
7 7
8 ;; This file is part of GNU Emacs. 8 ;; This file is part of XEmacs.
9 9
10 ;; GNU Emacs is free software; you can redistribute it and/or modify 10 ;; XEmacs is free software; you can redistribute it and/or modify it
11 ;; it under the terms of the GNU General Public License as published by 11 ;; under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option) 12 ;; the Free Software Foundation; either version 2, or (at your option)
13 ;; any later version. 13 ;; any later version.
14 14
15 ;; GNU Emacs is distributed in the hope that it will be useful, 15 ;; XEmacs is distributed in the hope that it will be useful, but
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ;; GNU General Public License for more details. 18 ;; General Public License for more details.
19 19
20 ;; You should have received a copy of the GNU General Public License 20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to 21 ;; along with XEmacs; see the file COPYING. If not, write to the Free
22 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 22 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23 ;; 02111-1307, USA.
23 24
24 ;;; Commentary: 25 ;;; Commentary:
25 26
26 ;;; Uses the Emacs 19 terminal initialization features --- won't work with 18. 27 ;;; Uses the Emacs 19 terminal initialization features --- won't work with 18.
27 28
36 (mapcar (function (lambda (key-binding) 37 (mapcar (function (lambda (key-binding)
37 (define-key function-key-map 38 (define-key function-key-map
38 (car key-binding) (nth 1 key-binding)))) 39 (car key-binding) (nth 1 key-binding))))
39 '( 40 '(
40 ;; These are set up by termcap or terminfo 41 ;; These are set up by termcap or terminfo
41 ;; ("\eOP" [kp_f1]) 42 ;; ("\eOP" [kp-f1])
42 ;; ("\eOQ" [kp_f2]) 43 ;; ("\eOQ" [kp-f2])
43 ;; ("\eOR" [kp_f3]) 44 ;; ("\eOR" [kp-f3])
44 ;; ("\eOS" [kp_f4]) 45 ;; ("\eOS" [kp-f4])
45 46
46 ;; These might br set by terminfo 47 ;; These might br set by terminfo
47 ("\e[H" [home]) 48 ("\e[H" [home])
48 ("\e[Z" [backtab]) 49 ("\e[Z" [backtab])
49 ("\e[i" [print]) 50 ("\e[i" [print])
51 ("\e[L" [insertline]) 52 ("\e[L" [insertline])
52 ("\e[M" [deleteline]) 53 ("\e[M" [deleteline])
53 ("\e[U" [next]) ;; actually the `page' key 54 ("\e[U" [next]) ;; actually the `page' key
54 55
55 ;; These won't be set up by either 56 ;; These won't be set up by either
56 ("\eOm" [kp_subtract]) 57 ("\eOm" [kp-subtract])
57 ("\eOl" [kp_separator]) 58 ("\eOl" [kp-separator])
58 ("\eOn" [kp_decimal]) 59 ("\eOn" [kp-decimal])
59 ("\eOM" [kp_enter]) 60 ("\eOM" [kp-enter])
60 61
61 ;; These won't be set up by either either 62 ;; These won't be set up by either either
62 ("\e[K" [key_eol]) ;; Not an X keysym 63 ("\e[K" [key-eol]) ;; Not an X keysym
63 ("\e[J" [key_eos]) ;; Not an X keysym 64 ("\e[J" [key-eos]) ;; Not an X keysym
64 ("\e[2J" [key_clear]) ;; Not an X keysym 65 ("\e[2J" [key-clear]) ;; Not an X keysym
65 ("\e[P" [key_dc]) ;; Not an X keysym 66 ("\e[P" [key-dc]) ;; Not an X keysym
66 ("\e[g" [(shift tab)]) ;; Not an X keysym 67 ("\e[g" [(shift tab)]) ;; Not an X keysym
67 ("\e[2N" [clearentry]) ;; Not an X keysym 68 ("\e[2N" [clearentry]) ;; Not an X keysym
68 ("\e[2K" [(shift clearentry)]) ;; Not an X keysym 69 ("\e[2K" [(shift clearentry)]) ;; Not an X keysym
69 ("\e[E" [?\C-j]) ;; Not an X keysym 70 ("\e[E" [?\C-j]) ;; Not an X keysym
70 ("\e[g" [(shift backtab)]) ;; Not an X keysym 71 ("\e[g" [(shift backtab)]) ;; Not an X keysym
71 ("\e[?1i" [key_sprint]) ;; Not an X keysym 72 ("\e[?1i" [key-sprint]) ;; Not an X keysym
72 ("\e[4h" [key_sic]) ;; Not an X keysym 73 ("\e[4h" [key-sic]) ;; Not an X keysym
73 ("\e[4l" [(shift delete)]) ;; Not an X keysym 74 ("\e[4l" [(shift delete)]) ;; Not an X keysym
74 ("\e[Q" [(shift insertline)]) ;; Not an X keysym 75 ("\e[Q" [(shift insertline)]) ;; Not an X keysym
75 ("\e[1Q" [key_sdl]) ;; Not an X keysym 76 ("\e[1Q" [key-sdl]) ;; Not an X keysym
76 ("\e[19l" [key_seol]) ;; Not an X keysym 77 ("\e[19l" [key-seol]) ;; Not an X keysym
77 ("\e[19h" [(shift erasepage)]) ;; Not an X keysym 78 ("\e[19h" [(shift erasepage)]) ;; Not an X keysym
78 ("\e[V" [(shift page)]) ;; Not an X keysym 79 ("\e[V" [(shift page)]) ;; Not an X keysym
79 ("\eS" [send]) ;; Not an X keysym 80 ("\eS" [send]) ;; Not an X keysym
80 ("\e5" [(shift send)]) ;; Not an X keysym 81 ("\e5" [(shift send)]) ;; Not an X keysym
81 )) 82 ))
83 ;; The numeric keypad keys. 84 ;; The numeric keypad keys.
84 (let ((i 0)) 85 (let ((i 0))
85 (while (< i 10) 86 (while (< i 10)
86 (define-key function-key-map 87 (define-key function-key-map
87 (format "\eO%c" (+ i ?p)) 88 (format "\eO%c" (+ i ?p))
88 (vector (intern (format "kp_%d" i)))) 89 (vector (intern (format "kp-%d" i))))
89 (setq i (1+ i)))) 90 (setq i (1+ i))))
90 ;; The numbered function keys. 91 ;; The numbered function keys.
91 (let ((i 0)) 92 (let ((i 0))
92 (while (< i 16) 93 (while (< i 16)
93 (define-key function-key-map 94 (define-key function-key-map