Newsgroups: comp.windows.x
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines
From: mouse@lightning.mcrcim.mcgill.EDU (der Mouse)
Subject: Re:  vi behaves strangely with xterm
Message-ID: <9105021255.AA18081@lightning.McRCIM.McGill.EDU>
Sender: daemon@athena.mit.edu (Mr Background)
Organization: The Internet
Date: 2 May 91 12:55:05 GMT
Lines: 26

> xterm seems to behave fine with vi when both vi and xterm are running
> on the local machine.  However when I remote login to another machine
> from within my xterm window, and subsequently bring up a file on the
> remote machine using vi, vi seems to have a problem with the terminal
> type and often behaves weirdly.

It's difficult to say what's the matter because you haven't said just
what goes wrong with vi.  "seems to have a problem with the terminal
type and often behaves weirdly" could mean almost anything.

Two plausible problems come to mind, though.  One is that the remote
login program you are using is, for one reason or another, not copying
the window size information to the remote machine correctly; the other
is that the remote machine has a broken termcap/terminfo description
for xterm in its database.  You should be able to tell which is which
by logging in to the remote machine and start an xterm there, telling
it to display on your local machine, then try vi (on the same file; it
could conceivably be something related to the file you're trying to
edit).  Then speak to your local system types about fixing whatever
this indicates is broken: either the remote-login program, if vi works
OK, or the remote machine's setup, if not.

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu
