[comp.emacs] Toggleing between 80 and 132 column on VT220s

ajw@ansa.co.uk (Andrew Watson) (09/14/90)

> I have been trying to get Gnu Emacs to toggle between 80 columns and
> 132 columns on my VT-220.  I haven't been able to do this without
> restarting emacs in the new mode.  Is there a ELISP program available
> to do this?  I cann't be the only person who uses Gnu Emacs on a VT-220
> terminal.

These two functions used to work with my ADM-220 clone, when I had one:

(defun 80-columns ()
  (interactive)
  (send-string-to-terminal "\033[?3l")
  (set-screen-width 80))

(defun 132-columns ()
  (interactive)
  (send-string-to-terminal "\033[?3h")
  (set-screen-width 132))

       .                           Regards,
      / \^
     / / \ \                           Andrew
    / /   \ \
   '=========`        Andrew Watson                Tel:      +44 223 323010
  /| |\ | <  |\	      APM Ltd, Poseidon House,     Fax:      +44 223 359779
 / | | \| _> | \      Castle Park,                 UUCP:     mcsun!ukc!ansa!ajw
 ---------------      Cambridge CB3 0RD, UK        Internet: ajw@ansa.co.uk