Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!csun!kithrup!sef From: sef@kithrup.COM (Sean Eric Fagan) Newsgroups: comp.unix.sysv386 Subject: Re: why doesnt vi resize itself in xterm and other weirdness Message-ID: <1991Jan15.095422.4359@kithrup.COM> Date: 15 Jan 91 09:54:22 GMT References: <37871@cup.portal.com> <1991Jan13.100440.2138@kithrup.COM> <1991Jan14.215038.9834@portia.Stanford.EDU> Distribution: na Organization: Kithrup Enterprises, Ltd. Lines: 23 In article <1991Jan14.215038.9834@portia.Stanford.EDU> fangchin@elaine8.stanford.edu (Chin Fang) writes: >I always can at least manually tell vi, emacs, less, more etc to adjust >to the right window size by typing (or including in appropriate login >initialization files, depending your shell): > >stty cols c# rows r# [enter] Once again (repeating what I'd said in my post to which he followed up), only the STREAMS ptys in 3.2 support the rows and columns features (TIOCGWINSZ, I believe, and TIOCSWINSZ to set). stty does not support it at all, since no supported ttys support them. Since they are not supported, vi, more, and all other utilities distributed by the vendors (well, SCO and AT&T at least) do not support it; I can make emacs and less support it, but it would be futile, since only the STREAMS ptys would allow the ioctl. Instead, use the LINES and COLUMNS variables; terminfo utilities, at least, will use this; I forget whether or not termcap checks it. -- Sean Eric Fagan | "I made the universe, but please don't blame me for it; sef@kithrup.COM | I had a bellyache at the time." -----------------+ -- The Turtle (Stephen King, _It_) Any opinions expressed are my own, and generally unpopular with others.