why doesnt vi resize itself in xterm and other weirdness

Conor P. Cahill cpcahil at virtech.uucp
Sat Jan 12 12:15:41 AEST 1991


In article <37871 at cup.portal.com> DeadHead at cup.portal.com (Bruce M Ong) writes:
>running in an xterm, but when I resize the xterm and restart vi, 
>it will not chanage its window size according to the size of xterm. My

You need to run:

	eval `resize -u`

Assuming you are not using the C shell.

>	Another problem is that if you do rlogin and then vi on the
>remote machine from an xterm, the vi window is always 25x80 no matter
>what size your xterm is. Is there anything I should fix in xterm termcap?

On the remote machine place the same line into your .profile.  For
example, my .profile has the following stuff in it:

	if [ "$TERM" = xterm -a "`tty`" != "not a tty" ]; then
		echo "sizing terminal...\c"
		eval `resize -u`
		echo "done"
	fi

This even works when connected via serial lines (cu) to other systems
(assuming you have those lines in the .profile file on the system you
are connected to).

-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.unix.sysv386 mailing list