*BSD News Article 50697


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!zib-berlin.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: vidcontrol
Date: 6 Sep 1995 11:39:51 +0200
Organization: Private U**x site, Dresden.
Lines: 22
Message-ID: <42jq97$68l@bonnie.tcd-dresden.de>
References: <42ig53$eh1@news.bu.edu>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Mikhail Teterin <mi@cs.bu.edu> wrote:
><subj> does not do any stty changes when changes the number of lines 
>(VGA_80x??) )-:    Well, fine, I can alias around that.
>
>But then vi does not care about stty change -- if TERM says cons25 --
>that's it. elm checks for the actual number of lines and respects the
>change.

Perhaps you want to give pcvt a try? :-) It does handle all this kind
of stuff correctly, it even generates a SIGWINCH whenever you are
changing the geometry, so you can toggle back and forth between 25 and
40 lines or 80 and 132 columns from within an emacs session. :)

Otherwise, vi is perhaps picky and honours the window size structure
only when both, lines _and_ rows are being non-zero.  I remember that
there were several programs of this kind (hence pcvt properly fills in
both parameters in the window size struct inside the kernel).
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)