Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!uwvax!oddjob!mimsy!chris
From: chris@mimsy.UUCP (Chris Torek)
Newsgroups: comp.unix.wizards
Subject: Re: TSET can speed up BSD UNIX
Message-ID: <13606@mimsy.UUCP>
Date: 18 Sep 88 14:37:10 GMT
References: <43200043@uicsrd.csrd.uiuc.edu> <13582@mimsy.UUCP> 
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
Lines: 54

>In article <13582@mimsy.UUCP> I noted that
>>if you log in from a window on (e.g.) a Sun, rows and columns may be
>>nonzero, and, if so, should be left as they are, because they reflect
>>the actual size of the window.  

In article 
[my what a big domain you have :-) ] barnett@mozart.stars.flab.Fujitsu.JUNET
(Bruce Barnett) writes:
>Actually, there is a known problem with SunOS 3.x. You can log in with
>a vt100, and find out emacs, more, vi, etc. doesn't work properly.
>The reason is that the pseudo-terminal is confused and thinks the
>number of rows is 34, instead of 24. (do a 'stty everything' to see if
>this is the case).

>I believe this bug occurs when you run a job in the background, and
>log out before it terminates. The characteristics of the pty aren't
>reset.

Right---but this bug does not occur in 4.3BSD-tahoe (`login' resets the
tty size), and of course we fixed it here on our Suns too (there are
advantages to waiting for sources---disadvantages too: we are still
running SunOS 3.2).  I was in fact referring to logging in to a Vax or
Tahoe from a Sun, rather than the other way around.

>To fix this problem, you should put a 'stty rows 0 columns 0' in your
>.login file.

Or fix login, rlogind, and telnetd (but for that you need source).

>Also,  I frequently re-size my windows after login. So the size at
>login time is just the initial window size.

In fact, if you have the `new' rlogin protocol (which---of course!---
we installed on our Suns), you can use the simple alias

	alias resize 'echo -n "^[[8;\!:1;\!:2t"'

which works under both X and SunView.  This changes the window size on
the Sun, which sends a SIGWINCH, which triggers the Sun rlogin to send
the window size to the remote host, which sets the new window size.

I believe SunOS 3.5 already supports the new rlogin protocol.

>[Reality check time. Did I just correct Chris Torek? :-]

As they say, `close, but no cigar.' :-)

>Bruce G. Barnett   
>		uunet!steinmetz!barnett

(But what about all the JUNET stuff in the header?)
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris@mimsy.umd.edu	Path:	uunet!mimsy!chris