myron@nvuxl.UUCP (Myron Seto) (12/12/88)
I am using the Procomm version 2.4.2 as a terminal emulator on my IBM XT. One of the Set-up features is that I have to set Line Wrap=On. If not, whenever I do a 'cat' command, for example, the text runs off at the end of the line. The problem is that whenever I use vi, many strange things happen-lines appear twice(!), deleting lines is a hassle, etc. Basically, the CRT does not show what it supposes to show in vi with line wrap on. Can anyone tell me how I can have both Line wrap, and not have vi going berserk? Procomm is emulating the vt100 by the way, if that is part of my problem. I would appreciate any help. Thanks! Myron
gwyn@smoke.BRL.MIL (Doug Gwyn ) (12/13/88)
In article <658@nvuxl.UUCP> myron@nvuxl.UUCP (Myron Seto) writes: >I have to set Line Wrap=On. If not, whenever I do a 'cat' command, >for example, the text runs off at the end of the line. >The problem is that whenever I use vi, many strange things >happen-lines appear twice(!), deleting lines is a hassle, >etc. Basically, the CRT does not show what it supposes to >show in vi with line wrap on. >Can anyone tell me how I can have both Line wrap, and not >have vi going berserk? >Procomm is emulating the vt100 by the way, if that is part >of my problem. The primary principle is that your actual terminal (or terminal emulator) behavior and the UNIX terminal handler modes must agree with the terminal description contained in the termcap (or terminfo) database in order for screen-oriented utilities to work properly. Another important thing to know is that the termcap (or terminfo) "am" Boolean capability does NOT describe the behavior of a genuine VT100. Further, a real VT100 is so bizarre in this that most emulations of it don't attempt to get it exactly the same. Termcap/terminfo-using software should never assume that the absence of "am" implies that lines are necessarily trimmed at the right margin; they might wrap anyway (e.g. with VT100-like behavior). It sound to me as though either your termcap/terminfo VT100 description erroneously includes "am" and your VT100 emulator in line-wrap mode doesn't implement termcap-style "am", or your "vi" doesn't correctly interpret the absence of "am".