aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/term/vt100.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/term/vt100.el b/lisp/term/vt100.el
index 5c723f433f5..7e56df97b64 100644
--- a/lisp/term/vt100.el
+++ b/lisp/term/vt100.el
@@ -90,12 +90,14 @@
90 "t if vt100 is in 132-column mode.") 90 "t if vt100 is in 132-column mode.")
91 91
92(defun vt100-wide-mode (&optional arg) 92(defun vt100-wide-mode (&optional arg)
93 "Toggle 132/80 column mode for vt100s." 93 "Toggle 132/80 column mode for vt100s.
94With positive argument, switch to 132-column mode.
95With negative argument, switch to 80-column mode."
94 (interactive "P") 96 (interactive "P")
95 (setq vt100-wide-mode 97 (setq vt100-wide-mode
96 (if (null arg) (not vt100-wide-mode) 98 (if (null arg) (not vt100-wide-mode)
97 (> (prefix-numeric-value arg) 0))) 99 (> (prefix-numeric-value arg) 0)))
98 (send-string-to-terminal (if vt100-wide-mode "\e[?3h" "\e[?3l")) 100 (send-string-to-terminal (if vt100-wide-mode "\e[?3h" "\e[?3l"))
99 (set-frame-width (if vt100-wide-mode 132 80))) 101 (set-frame-width terminal-frame (if vt100-wide-mode 132 80)))
100 102
101;;; vt100.el ends here 103;;; vt100.el ends here