Mercurial > emacs
annotate lisp/term/wyse50.el @ 82654:32361057ee47
Move refcards from etc/ to etc/refcards/
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 22 Aug 2007 07:24:42 +0000 |
parents | 030ae62d5c57 |
children | f1713f61ee49 65663fcd2caa f55f9811f5d7 |
rev | line source |
---|---|
47726
33d53d287ee4
Add "no-byte-compile: t" in first line.
Juanma Barranquero <lekktu@gmail.com>
parents:
23869
diff
changeset
|
1 ;;; wyse50.el --- terminal support code for Wyse 50 -*- no-byte-compile: t -*- |
2142
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
2 |
74509 | 3 ;; Copyright (C) 1989, 1993, 1994, 2001, 2002, 2003, 2004, |
75347 | 4 ;; 2005, 2006, 2007 Free Software Foundation, Inc. |
3287 | 5 |
23869 | 6 ;; Author: Daniel Pfeiffer <occitan@esperanto.org>, |
2142
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
7 ;; Jim Blandy <jimb@occs.cs.oberlin.edu> |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
8 ;; Keywords: terminals |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
9 |
14170 | 10 ;; This file is part of GNU Emacs. |
11 | |
12 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
13 ;; 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
|
14 ;; the Free Software Foundation; either version 3, or (at your option) |
14170 | 15 ;; any later version. |
16 | |
17 ;; GNU Emacs is distributed in the hope that it will be useful, | |
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 ;; GNU General Public License for more details. | |
21 | |
22 ;; You should have received a copy of the GNU General Public License | |
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
64084 | 24 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
25 ;; Boston, MA 02110-1301, USA. | |
2142
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
26 |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
27 ;;; Commentary: |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
28 |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
29 ;; Uses the Emacs 19 terminal initialization features --- won't work with 18. |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
30 ;; Rewritten for Emacs 19 by jimb, January 1992 |
3591
507f64624555
Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents:
3287
diff
changeset
|
31 ;; Cleaned up for new terminal package conventions by esr, March 1993 |
2142
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
32 ;; Should work well for Televideo TVI 925 although it's overkill. |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
33 ;; |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
34 ;; The Wyse50 is ergonomically wonderful, but its escape-sequence design sucks |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
35 ;; rocks. The left-arrow key emits a backspace (!) and the down-arrow a line |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
36 ;; feed (!!). Thus, you have to unbind some commonly-used Emacs keys to |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
37 ;; enable the arrows. |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
38 |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
39 ;;; Code: |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
40 |
64651
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
41 (defun terminal-init-wyse50 () |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
42 "Terminal initialization function for wyse50." |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
43 (define-key function-key-map "\C-a" (make-keymap)) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
44 (mapcar (function (lambda (key-definition) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
45 (define-key function-key-map |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
46 (car key-definition) (nth 1 key-definition)))) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
47 '( |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
48 ;; These might be set up by termcap and terminfo |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
49 ("\C-k" [up]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
50 ("\C-j" [down]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
51 ("\C-l" [right]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
52 ("\C-h" [left]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
53 ("\^a@\^m" [f1]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
54 ("\^aA\^m" [f2]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
55 ("\^aB\^m" [f3]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
56 ("\^aC\^m" [f4]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
57 ("\^aD\^m" [f5]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
58 ("\^aE\^m" [f6]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
59 ("\^aF\^m" [f7]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
60 ("\^aG\^m" [f8]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
61 ("\^aH\^m" [f9]) |
166 | 62 |
64651
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
63 ;; These might be set up by terminfo |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
64 ("\eK" [next]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
65 ("\eT" [clearline]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
66 ("\^^" [home]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
67 ("\e\^^" [end]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
68 ("\eQ" [insert]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
69 ("\eE" [insertline]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
70 ("\eR" [deleteline]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
71 ("\eP" [print]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
72 ("\er" [replace]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
73 ("\^aI\^m" [f10]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
74 ("\^aJ\^m" [f11]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
75 ("\^aK\^m" [f12]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
76 ("\^aL\^m" [f13]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
77 ("\^aM\^m" [f14]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
78 ("\^aN\^m" [f15]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
79 ("\^aO\^m" [f16]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
80 ("\^a`\^m" [f17]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
81 ("\^aa\^m" [f18]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
82 ("\^ab\^m" [f19]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
83 ("\^ac\^m" [f20]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
84 ("\^ad\^m" [f21]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
85 ("\^ae\^m" [f22]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
86 ("\^af\^m" [f23]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
87 ("\^ag\^m" [f24]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
88 ("\^ah\^m" [f25]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
89 ("\^ai\^m" [f26]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
90 ("\^aj\^m" [f27]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
91 ("\^ak\^m" [f28]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
92 ("\^al\^m" [f29]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
93 ("\^am\^m" [f30]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
94 ("\^an\^m" [f31]) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
95 ("\^ao\^m" [f32]) |
2142
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
96 |
64651
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
97 ;; Terminfo may know about these, but X won't |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
98 ("\eI" [key-stab]) ;; Not an X keysym |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
99 ("\eJ" [key-snext]) ;; Not an X keysym |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
100 ("\eY" [key-clear]) ;; Not an X keysym |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
101 |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
102 ;; These are totally strange :-) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
103 ("\eW" [?\C-?]) ;; Not an X keysym |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
104 ("\^a\^k\^m" [funct-up]) ;; Not an X keysym |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
105 ("\^a\^j\^m" [funct-down]) ;; Not an X keysym |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
106 ("\^a\^l\^m" [funct-right]) ;; Not an X keysym |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
107 ("\^a\^h\^m" [funct-left]) ;; Not an X keysym |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
108 ("\^a\^m\^m" [funct-return]) ;; Not an X keysym |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
109 ("\^a\^i\^m" [funct-tab]) ;; Not an X keysym |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
110 )) |
2142
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
111 |
64651
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
112 ;; Miscellaneous hacks |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
113 |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
114 ;; This is an ugly hack for a nasty problem: |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
115 ;; Wyse 50 takes one character cell to store video attributes (which seems to |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
116 ;; explain width 79 rather than 80, column 1 is not used!!!). |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
117 ;; On killing (C-x C-c) the end inverse code (on column 1 of line 24) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
118 ;; of the mode line is overwritten AFTER all the y-or-n questions. |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
119 ;; This causes the attribute to remain in effect until the mode line has |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
120 ;; scrolled of the screen. Suspending (C-z) does not cause this problem. |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
121 ;; On such terminals, Emacs should sacrifice the first and last character of |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
122 ;; each mode line, rather than a whole screen column! |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
123 (add-hook 'kill-emacs-hook |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
124 (function (lambda () (interactive) |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
125 (send-string-to-terminal |
af1c58687bdd
* term/apollo.el (terminal-init-apollo): New function containing
Dan Nicolaescu <dann@ics.uci.edu>
parents:
64084
diff
changeset
|
126 (concat "\ea23R" (1+ (frame-width)) "C\eG0")))))) |
2142
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
127 |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
128 (defun enable-arrow-keys () |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
129 "To be called by term-setup-hook. Overrides 6 Emacs standard keys |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
130 whose functions are then typed as follows: |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
131 C-a Funct Left-arrow |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
132 C-h M-? |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
133 LFD Funct Return, some modes override down-arrow via LFD |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
134 C-k CLR Line |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
135 C-l Scrn CLR |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
136 M-r M-x move-to-window-line, Funct up-arrow or down-arrow are similar |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
137 " |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
138 (interactive) |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
139 (mapcar (function (lambda (key-definition) |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
140 (global-set-key (car key-definition) |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
141 (nth 1 key-definition)))) |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
142 ;; By unsetting C-a and then binding it to a prefix, we |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
143 ;; allow the rest of the function keys which start with C-a |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
144 ;; to be recognized. |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
145 '(("\C-a" nil) |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
146 ("\C-k" nil) |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
147 ("\C-j" nil) |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
148 ("\C-l" nil) |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
149 ("\C-h" nil) |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
150 ("\er" nil))) |
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
151 (fset 'enable-arrow-keys nil)) |
502 | 152 |
52401 | 153 ;;; arch-tag: b6a05d37-eead-4cf6-b997-0f956c68881c |
2142
67773a6ede4e
Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
779
diff
changeset
|
154 ;;; wyse50.el ends here |