vi thinks screen is very short

Morris Katz mkatz at sesame.stanford.edu
Thu Oct 12 02:42:39 AEST 1989


In article <2012 at brazos.Rice.edu>, sequent!ccssrv!perry at tektronix (Perry Hutchison) writes:
>One of our diskless 3/50's here did something very strange, and I wonder
>if anyone can explain it.  Whenever the user started vi in any of his
>Suntools windows, it would only use the bottom few lines of the screen.
>Logging out and back in did not help, but after rebooting the node
>everything was normal.  This is with SunOS 3.5.
>
>Does anyone have any idea what's going on here?  If it happens again, is
>there a less severe cure than rebooting?

Sounds like you are exercising a known bug with SunOS that it sometimes
looses info on the number of columns and lines on your screen when you
telnet in (and possibly other times).  You might try adding the following
lines to your .login file following the setting of your terminal type:

# The following lines patch a bug that the operating system sometimes
# becomes confused about the number of lines and columns for your
# terminal (see Sept. 1987 Sun Software Technical Bulletin, p. 590)
if ($term != "sun") then
	stty everything|& fgrep -s columns
	@ setscreensize != $status
	if ($setscreensize) stty rows 0 cols 0
endif



More information about the Comp.sys.sun mailing list