Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!uunet!mcsun!ukc!keele!pha21 From: pha21@seq1.keele.ac.uk (Braham Levy) Newsgroups: comp.windows.x Subject: Re: vi behaves strangely with xterm Summary: some more thoughts Message-ID: <1144@keele.keele.ac.uk> Date: 3 May 91 11:37:52 GMT References: <9105021255.AA18081@lightning.McRCIM.McGill.EDU> Organization: University of Keele, England Lines: 35 From postnews Fri May 3 12:35:32 1991 In article <9105021255.AA18081@lightning.McRCIM.McGill.EDU>, mouse@lightning.mcrcim.mcgill.EDU (der Mouse) writes: > > 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 maybe not broken but different ! do you run xterm as 80x24 (just like a VT100) or do you run default xterm (80x60), if so there's the clue. if you run as 80x24 try this : - rlogin to your other machine and tell it you're a vt100. now try vi. if it works there's nowt wrong with your xterm. alternatively instead of this try telling the remote machine that you terminal is `xterms` please include the extra "s". if this works the above applies. if the remote host has X-stuff on it login tell it you're an xterm (no "s") and then run the resize program (part of X11 dist). if all works the answer is in the remote machines xterm termcap/terminfo entry which probably has #li=60 #co=80 (termcap style) in it. xterms should be defined with 24 and 80 respectively. hope this helps braham