Mercurial > hg > xemacs-beta
annotate lisp/term/news.el @ 5584:d469c668462e
#'load-terminal-library; load term files correctly for gnuclient consoles.
lisp/ChangeLog addition:
2011-10-17 Aidan Kehoe <kehoea@parhasard.net>
* startup.el (load-terminal-library):
Don't (getenv "TERM") here, call #'console-tty-terminal-type
instead, different gnuclient consoles can and should have
different terminal type function maps effective.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Tue, 18 Oct 2011 12:03:36 +0100 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
428 | 1 ;; news.el --- keypad and function key bindings for the Sony NEWS keyboard |
2 | |
3 ;; Author: FSF | |
4 ;; Keywords: terminals | |
5 | |
6 ;; Copyright (C) 1989, 1993 Free Software Foundation, Inc. | |
7 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
622
diff
changeset
|
8 ;; This file is part of XEmacs. |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
622
diff
changeset
|
9 ;; |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
622
diff
changeset
|
10 ;; XEmacs is free software: you can redistribute it and/or modify it |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
622
diff
changeset
|
11 ;; under the terms of the GNU General Public License as published by the |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
622
diff
changeset
|
12 ;; Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
622
diff
changeset
|
13 ;; option) any later version. |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
622
diff
changeset
|
14 ;; |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
622
diff
changeset
|
15 ;; XEmacs is distributed in the hope that it will be useful, but WITHOUT |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
622
diff
changeset
|
16 ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
622
diff
changeset
|
17 ;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
622
diff
changeset
|
18 ;; for more details. |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
622
diff
changeset
|
19 ;; |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
622
diff
changeset
|
20 ;; You should have received a copy of the GNU General Public License |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
622
diff
changeset
|
21 ;; along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
428 | 22 |
622 | 23 ;;; Synched up with: FSF 21.0.103. |
24 | |
428 | 25 ;;; Commentary: |
26 | |
27 ;;; Uses the Emacs 19 terminal initialization features --- won't work with 18. | |
28 | |
29 ;;; Code: | |
30 | |
622 | 31 (defvar news-fkey-prefix) |
32 | |
428 | 33 (if (boundp 'news-fkey-prefix) |
34 nil | |
35 ;; The terminal initialization should already have set up some keys | |
36 (setq news-fkey-prefix (lookup-key function-key-map "\eO")) | |
37 (if (not (keymapp news-fkey-prefix)) | |
38 (error "What? Your news termcap/terminfo has no keycaps in it.")) | |
39 | |
40 ;; Termcap or terminfo will set these | |
41 ;; (define-key news-fkey-prefix "P" [f1]) | |
42 ;; (define-key news-fkey-prefix "Q" [f2]) | |
43 ;; (define-key news-fkey-prefix "R" [f3]) | |
44 ;; (define-key news-fkey-prefix "S" [f4]) | |
45 ;; (define-key news-fkey-prefix "T" [f5]) | |
46 ;; (define-key news-fkey-prefix "U" [f6]) | |
47 ;; (define-key news-fkey-prefix "V" [f7]) | |
48 ;; (define-key news-fkey-prefix "W" [f8]) | |
49 ;; (define-key news-fkey-prefix "X" [f9]) | |
50 ;; (define-key news-fkey-prefix "Y" [f10]) | |
51 | |
52 ;; Terminfo will set these | |
53 (define-key news-fkey-prefix "a" [execute]) | |
54 (define-key news-fkey-prefix "b" [select]) | |
55 (define-key news-fkey-prefix "c" [cancel]) | |
56 (define-key news-fkey-prefix "M" [kp-enter]) | |
57 (define-key news-fkey-prefix "q" [kp-1]) | |
58 (define-key news-fkey-prefix "s" [kp-3]) | |
59 (define-key news-fkey-prefix "u" [kp-5]) | |
60 (define-key news-fkey-prefix "w" [kp-7]) | |
61 (define-key news-fkey-prefix "y" [kp-9]) | |
62 | |
63 ;; These aren't in either termcap or terminfo's repertoire | |
64 (define-key news-fkey-prefix "m" [kp-subtract]) | |
65 (define-key news-fkey-prefix "k" [kp-add]) | |
66 (define-key news-fkey-prefix "l" [kp-separator]) | |
67 (define-key news-fkey-prefix "n" [kp-decimal]) | |
68 (define-key news-fkey-prefix "p" [kp-0]) | |
69 (define-key news-fkey-prefix "r" [kp-2]) | |
70 (define-key news-fkey-prefix "t" [kp-4]) | |
71 (define-key news-fkey-prefix "v" [kp-6]) | |
72 (define-key news-fkey-prefix "x" [kp-8]) | |
73 ) | |
74 | |
75 ;;; news.el ends here |