Path: utzoo!attcan!uunet!ns-mx!iowasp.physics.uiowa.edu!maverick.ksu.ksu.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!ansa.co.uk!ajw From: ajw@ansa.co.uk (Andrew Watson) Newsgroups: comp.emacs Subject: Toggleing between 80 and 132 column on VT220s Message-ID: <9009140859.AA07149%crippen@ansa.co.uk> Date: 14 Sep 90 08:59:28 GMT References: <961@digi.lonestar.org> Sender: daemon@ucbvax.BERKELEY.EDU Lines: 26 > 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