aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1991-01-30 01:10:20 +0000
committerJim Blandy1991-01-30 01:10:20 +0000
commit523b95628ea2969ab7f70b6dc40bab3392413169 (patch)
tree48449b207e49ee89971f4a7d75edb7e5d7ae03fb
parent7dd63af169a20ff7639f1f2158a85034552df5a3 (diff)
downloademacs-523b95628ea2969ab7f70b6dc40bab3392413169.tar.gz
emacs-523b95628ea2969ab7f70b6dc40bab3392413169.zip
*** empty log message ***
-rw-r--r--lisp/term/wyse50.el15
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/term/wyse50.el b/lisp/term/wyse50.el
index 10f39ce0049..712e1062d00 100644
--- a/lisp/term/wyse50.el
+++ b/lisp/term/wyse50.el
@@ -81,19 +81,18 @@
81(defun enable-arrow-keys () 81(defun enable-arrow-keys ()
82 "To be called by term-setup-hook. Overrides 6 Emacs standard keys 82 "To be called by term-setup-hook. Overrides 6 Emacs standard keys
83whose functions are then typed as follows: 83whose functions are then typed as follows:
84C-a Funct Left-arrow 84C-a Funct left-arrow, C-a C-a
85C-h M-? 85C-h M-?
86LFD Funct Return, some modes override down-arrow via LFD 86LFD Funct Return, some modes override down-arrow via LFD
87C-k CLR Line 87C-k CLR Line
88C-l Scrn CLR 88C-l Shift Scrn CLR
89M-r M-x move-to-window-line, Funct up-arrow or down-arrow are similar 89M-r M-x move-to-window-line, Funct up-arrow or down-arrow are similar
90All special keys except Send, Shift Ins, Shift Home and shifted functions keys 90All special keys except Send, Shift Ins, Shift Home and shifted functions keys
91are assigned some hopefully useful meaning." 91are assigned some hopefully useful meaning."
92 (interactive) 92 (interactive)
93 93
94 ; Function keys 94 ; Function keys
95 (define-prefix-command 'Funct-prefix) 95 (define-key global-map "\^a" (define-prefix-command 'Funct-prefix))
96 (define-key global-map "\^a" 'Funct-prefix)
97 96
98 ; Arrow keys 97 ; Arrow keys
99 (setup-terminal-keymap global-map 98 (setup-terminal-keymap global-map
@@ -133,7 +132,7 @@ are assigned some hopefully useful meaning."
133 ("\^a\^l\^m" . end-of-line))) 132 ("\^a\^l\^m" . end-of-line)))
134 133
135 ; forget self to put memory to some serious use 134 ; forget self to put memory to some serious use
136 (fset 'enable-arrow-keys nil)) 135 (fmakunbound 'enable-arrow-keys))
137 136
138 137
139(defun toggle-screen-width () 138(defun toggle-screen-width ()
@@ -154,7 +153,7 @@ are assigned some hopefully useful meaning."
154; that will edit calls like (set-function-key ?x 'do-whatever) in ~/.emacs. 153; that will edit calls like (set-function-key ?x 'do-whatever) in ~/.emacs.
155(defun set-function-key (key &optional def) 154(defun set-function-key (key &optional def)
156 "Prompt for a function or other special key and assign it a meaning. 155 "Prompt for a function or other special key and assign it a meaning.
157The key must have been \"forwarded\" to a character in term/*.el. 156The key must have been \"forwarded\" to a character by term/*.el.
158 157
159As a function takes two args CHAR and DEF, with DEF as in define-key. 158As a function takes two args CHAR and DEF, with DEF as in define-key.
160If your terminals term/*.el forwards a physical key to CHAR (before or after 159If your terminals term/*.el forwards a physical key to CHAR (before or after
@@ -201,7 +200,7 @@ For keys labelled with some words or a symbol
201 ?u -- up-arrow. 200 ?u -- up-arrow.
202 ?x -- do key. 201 ?x -- do key.
203 ?\\? -- help." 202 ?\\? -- help."
204 (interactive "kKey to redefine: ") 203 (interactive "kHit key to redefine")
205 (let ((map function-keymap)) 204 (let ((map function-keymap))
206 (if (integerp key) 205 (if (integerp key)
207 () 206 ()
@@ -218,7 +217,7 @@ For keys labelled with some words or a symbol
218 (if (and (consp map) 217 (if (and (consp map)
219 (integerp (cdr map))) 218 (integerp (cdr map)))
220 (setq key (cdr map) 219 (setq key (cdr map)
221 map (car map)) 220 map (car map)) ; function-keymap usually
222 (error "Key is not a \"forwarded\" definition."))) 221 (error "Key is not a \"forwarded\" definition.")))
223 (if def 222 (if def
224 () 223 ()