TERMCAPS for v100 and long lines in vi

utzoo!decvax!decwrl!sun!megatest!fortune!hpda!hplabs!hao!seismo!rocheste!ritcv!kar utzoo!decvax!decwrl!sun!megatest!fortune!hpda!hplabs!hao!seismo!rocheste!ritcv!kar
Thu May 5 09:10:58 AEST 1983


Re: need to change the source of vi to make it work with a VT100

No, no, NO!  Don't change your source to vi to make it work on your VT100's!
Our unmodified 4.1bsd vi works fine with our VT100's.  After messing around
with it for a while, the combination I found that seems to work is as follows:

1)	Remove "pt" and "xn" from the termcap entry.
2)	SETUP the terminal so that WRAPAROUND is ON.

	This is what works for us for short and long (>80) lines.  I did this
a long time ago, and in looking at it now do not remember whether omitting "pt"
(physical tabs) is really a necessary part of the solution, but I don't have a
VT100 in my office so I don't care to find out.

	Ken Reek, Rochester Institute of Technology
	seismo!rochester!ritcv!kar

PS:	Just for the record, here is our termcap entry for the VT100:

d1|vt100|vt-100|pt100|pt-100|dec vt100:\
	:if=/usr/lib/tabset/vt100:\
	:is=\E>\E[?3l\E[?4l\E[?7h\E[?8h:\
	:am:bs:cd=50\E[J:ce=3\E[K:cl=50\E[;H\E[2J:cm=5\E[%i%2;%2H:co#80:\
	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:kd=\EOB:ke=\E[?1l\E>:kh=\E[H:kl=\EOD:\
	:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:li#24:nd=2\E[C:se=2\E[m:so=2\E[7m:\
	:sr=5\EM:ue=2\E[m:up=2\E[A:us=2\E[4m:

PPS:	By the way, I have a script that reads termcap and sorts the capa-
bilities in each entry, which makes termcap much easier to work with.  If any-
one is interested, send me mail: if there is sufficient interest I'll post it.



More information about the Comp.unix.wizards mailing list