annotate lisp/term/wyse50.el @ 3098:6aee2746a385

(C_ALLOCA, alloca): Definitions deleted. [!NOT_C_CODE]: Include alloca.h. (NEED_SIOCTL): #undef this.
author Richard M. Stallman <rms@gnu.org>
date Tue, 25 May 1993 21:01:14 +0000
parents ce068246b4d7
children f3c8ed7fcb45
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2142
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
1 ;;; wyse50.el --- terminal support code for Wyse 50
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
2
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
3 ;; Author: Daniel Pfieffer <pfieffer@cix.cict.fr> January 1991
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
4 ;; 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
5 ;; Keywords: terminals
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
6
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
7 ;; Copyright (C) 1989 Free Software Foundation, Inc.
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
8
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
9 ;; This file is part of GNU Emacs.
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
10
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
11 ;; GNU Emacs is distributed in the hope that it will be useful,
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
12 ;; but WITHOUT ANY WARRANTY. No author or distributor
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
13 ;; accepts responsibility to anyone for the consequences of using it
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
14 ;; or for whether it serves any particular purpose or works at all,
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
15 ;; unless he says so in writing. Refer to the GNU Emacs General Public
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
16 ;; License for full details.
166
4c0d89aec359 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
17
2142
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
18 ;; Everyone is granted permission to copy, modify and redistribute
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
19 ;; GNU Emacs, but only under the conditions described in the
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
20 ;; GNU Emacs General Public License. A copy of this license is
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
21 ;; supposed to have been given to you along with GNU Emacs so you
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
22 ;; can know your rights and responsibilities. It should be in a
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
23 ;; file named COPYING. Among other things, the copyright notice
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
24 ;; and this notice must be preserved on all copies.
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
25
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
26 ;;; Commentary:
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
27
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
28 ;; 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
29 ;; Rewritten for Emacs 19 by jimb, January 1992
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
30 ;; Cleaned up for new terminal package cinventions by esr, March 1993
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
31 ;; 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
32 ;;
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
33 ;; 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
34 ;; 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
35 ;; 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
36 ;; enable the arrows.
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
37
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
38 ;;; Code:
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
39
502
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
40 (define-key function-key-map "\C-a" (make-keymap))
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
41 (mapcar (function (lambda (key-definition)
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
42 (define-key function-key-map
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
43 (car key-definition) (nth 1 key-definition))))
2142
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
44 '(
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
45 ;; These might be set up by termcap and terminfo
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
46 ("\C-k" [up])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
47 ("\C-j" [down])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
48 ("\C-l" [right])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
49 ("\C-h" [left])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
50 ("\^a@\^m" [f1])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
51 ("\^aA\^m" [f2])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
52 ("\^aB\^m" [f3])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
53 ("\^aC\^m" [f4])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
54 ("\^aD\^m" [f5])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
55 ("\^aE\^m" [f6])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
56 ("\^aF\^m" [f7])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
57 ("\^aG\^m" [f8])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
58 ("\^aH\^m" [f9])
166
4c0d89aec359 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
59
2142
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
60 ;; These might be set up by terminfo
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
61 ("\eK" [next])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
62 ("\eT" [clearline])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
63 ("\^^" [home])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
64 ("\e\^^" [end])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
65 ("\eQ" [insert])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
66 ("\eE" [insertline])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
67 ("\eR" [deleteline])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
68 ("\eP" [print])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
69 ("\er" [replace])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
70 ("\^aI\^m" [f10])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
71 ("\^aJ\^m" [f11])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
72 ("\^aK\^m" [f12])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
73 ("\^aL\^m" [f13])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
74 ("\^aM\^m" [f14])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
75 ("\^aN\^m" [f15])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
76 ("\^aO\^m" [f16])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
77 ("\^a`\^m" [f17])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
78 ("\^aa\^m" [f18])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
79 ("\^ab\^m" [f19])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
80 ("\^ac\^m" [f20])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
81 ("\^ad\^m" [f21])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
82 ("\^ae\^m" [f22])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
83 ("\^af\^m" [f23])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
84 ("\^ag\^m" [f24])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
85 ("\^ah\^m" [f25])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
86 ("\^ai\^m" [f26])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
87 ("\^aj\^m" [f27])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
88 ("\^ak\^m" [f28])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
89 ("\^al\^m" [f29])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
90 ("\^am\^m" [f30])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
91 ("\^an\^m" [f31])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
92 ("\^ao\^m" [f32])
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
93
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
94 ;; Terminfo may know about these, but X won't
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
95 ("\eI" [key-stab]) ;; Not an X keysym
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
96 ("\eJ" [key-snext]) ;; Not an X keysym
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
97 ("\eY" [key-clear]) ;; Not an X keysym
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
98
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
99 ;; These are totally strange :-)
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
100 ("\eW" [?\C-?]) ;; Not an X keysym
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
101 ("\^a\^k\^m" [funct-up]) ;; Not an X keysym
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
102 ("\^a\^j\^m" [funct-down]) ;; Not an X keysym
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
103 ("\^a\^l\^m" [funct-right]) ;; Not an X keysym
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
104 ("\^a\^h\^m" [funct-left]) ;; Not an X keysym
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
105 ("\^a\^m\^m" [funct-return]) ;; Not an X keysym
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
106 ("\^a\^i\^m" [funct-tab]) ;; Not an X keysym
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
107 ))
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
108
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
109 (defun enable-arrow-keys ()
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
110 "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
111 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
112 C-a Funct Left-arrow
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
113 C-h M-?
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
114 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
115 C-k CLR Line
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
116 C-l Scrn CLR
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
117 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
118 "
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
119 (interactive)
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
120 (mapcar (function (lambda (key-definition)
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
121 (global-set-key (car key-definition)
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
122 (nth 1 key-definition))))
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
123 ;; 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
124 ;; 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
125 ;; to be recognized.
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
126 '(("\C-a" nil)
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
127 ("\C-k" nil)
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
128 ("\C-j" nil)
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
129 ("\C-l" nil)
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
130 ("\C-h" nil)
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
131 ("\er" nil)))
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
132 (fset 'enable-arrow-keys nil))
502
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
133
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
134
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
135 ;;; Miscellaneous hacks
166
4c0d89aec359 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
136
502
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
137 ;;; This is an ugly hack for a nasty problem:
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
138 ;;; Wyse 50 takes one character cell to store video attributes (which seems to
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
139 ;;; explain width 79 rather than 80, column 1 is not used!!!).
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
140 ;;; On killing (C-x C-c) the end inverse code (on column 1 of line 24)
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
141 ;;; of the mode line is overwritten AFTER all the y-or-n questions.
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
142 ;;; This causes the attribute to remain in effect until the mode line has
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
143 ;;; scrolled of the screen. Suspending (C-z) does not cause this problem.
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
144 ;;; On such terminals, Emacs should sacrifice the first and last character of
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
145 ;;; each mode line, rather than a whole screen column!
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
146 (setq kill-emacs-hook
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
147 (function (lambda () (interactive)
078fa30e9292 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 173
diff changeset
148 (send-string-to-terminal
779
c2dbf1fe0506 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 502
diff changeset
149 (concat "\ea23R" (1+ (frame-width)) "C\eG0")))))
166
4c0d89aec359 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
150
2142
67773a6ede4e Added headers, changed some keycap names.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 779
diff changeset
151 ;;; wyse50.el ends here