comparison lisp/term/wyse50.el @ 779:c2dbf1fe0506

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Wed, 15 Jul 1992 03:24:58 +0000
parents 078fa30e9292
children 67773a6ede4e
comparison
equal deleted inserted replaced
778:cd00bdacc17b 779:c2dbf1fe0506
46 (move-to-window-line (- n))) 46 (move-to-window-line (- n)))
47 47
48 (defun wyse-50-toggle-screen-width () 48 (defun wyse-50-toggle-screen-width ()
49 "Alternate between 80 and 132 columns." 49 "Alternate between 80 and 132 columns."
50 (interactive) 50 (interactive)
51 (if (<= (screen-width) 80) 51 (if (<= (frame-width) 80)
52 (progn 52 (progn
53 (send-string-to-terminal "\e`;") 53 (send-string-to-terminal "\e`;")
54 (set-screen-width 131)) 54 (set-frame-width 131))
55 (send-string-to-terminal "\e`:") 55 (send-string-to-terminal "\e`:")
56 (set-screen-width 79))) 56 (set-frame-width 79)))
57 57
58 58
59 ;;; Define the escape sequences for the function keys. 59 ;;; Define the escape sequences for the function keys.
60 (define-key function-key-map "\C-a" (make-keymap)) 60 (define-key function-key-map "\C-a" (make-keymap))
61 (mapcar (function (lambda (key-definition) 61 (mapcar (function (lambda (key-definition)
160 ;;; On such terminals, Emacs should sacrifice the first and last character of 160 ;;; On such terminals, Emacs should sacrifice the first and last character of
161 ;;; each mode line, rather than a whole screen column! 161 ;;; each mode line, rather than a whole screen column!
162 (setq kill-emacs-hook 162 (setq kill-emacs-hook
163 (function (lambda () (interactive) 163 (function (lambda () (interactive)
164 (send-string-to-terminal 164 (send-string-to-terminal
165 (concat "\ea23R" (1+ (screen-width)) "C\eG0"))))) 165 (concat "\ea23R" (1+ (frame-width)) "C\eG0")))))
166 166
167 (defun enable-arrow-keys () 167 (defun enable-arrow-keys ()
168 "To be called by term-setup-hook. Overrides 6 Emacs standard keys 168 "To be called by term-setup-hook. Overrides 6 Emacs standard keys
169 whose functions are then typed as follows: 169 whose functions are then typed as follows:
170 C-a Funct Left-arrow 170 C-a Funct Left-arrow