Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.sysv386 Subject: Re: why doesnt vi resize itself in xterm and other weirdness Message-ID: <1991Jan12.011541.11680@virtech.uucp> Date: 12 Jan 91 01:15:41 GMT References: <37871@cup.portal.com> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Distribution: na Organization: Virtual Technologies Inc., Sterling VA Lines: 31 In article <37871@cup.portal.com> DeadHead@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