amellor@CASABLANCA.BBN.COM (Art Mellor) (11/11/88)
Hello vi/X users,
Try this: Below you will find a new set of termcap entrys. Chop
these out into a file called, say, /usr/yourname/xtermcap on the
machine you log into with an xterm.
Set your termcap like this (assuming csh):
% setenv TERMCAP /usr/yourname/xtermcap
% set noglob; eval `tset -s xterm`; unset noglob
Cut on the dotted line:
-------------------------------------------------------------------------------
# Termcap to make vi work with xterm
#
vs|xterm|vs100|xterm terminal emulator (X window system):\
:cr=^M:do=^J:nl=^J:bl=^G:le=^H:ho=\E[H:\
:co#80:li#57:cl=\E[H\E[2J:bs:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\
:ce=\E[K:cd=\E[J:so=\E[7m:se=2\E[m:us=\E[4m:ue=\E[m:\
:md=\E[1m:mr=\E[7m:me=2\E[m:\
:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kb=^H:\
:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k0=\E[21~:\
:ta=^I:pt:sf=\n:sr=\EM:\
:al=\E[L:dl=\E[M:ic=\E[@:dc=\E[P:\
:MT:ks=\E[?1h\E=:ke=\E[?1l\E>:\
:is=\E[r\E\E[m\E[2J\E[H\E[?7h\E[?1;3;4;5;6l:\
:rs=\E[r\E<\E[m\E[2J\E[H\E[?7h\E[?1;3;4;5;6l:\
:ti=\E[?47h:te=\E[2J\E[?47l:xn:
v2|xterms|vs100s|xterm terminal emulator (small)(X window system):\
:co#80:li#24:tc=xterm:
Mu|sun|Sun Microsystems Workstation console:\
:am:bs:km:mi:ms:pt:li#34:co#80:cl=^L:cm=\E[%i%d;%dH:\
:ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:rs=\E[s:\
:al=\E[L:dl=\E[M:im=:ei=:ic=\E[@:dc=\E[P:\
:up=\E[A:nd=\E[C:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:\
:k1=\E[224z:k2=\E[225z:k3=\E[226z:k4=\E[227z:k5=\E[228z:\
:k6=\E[229z:k7=\E[230z:k8=\E[231z:k9=\E[232z:
-------------------------------------------------------------------------------
Everything between the LONG ------'s should go in /usr/yourname/xtermcapcasey@lll-crg.llnl.gov (Casey Leedom) (12/08/88)
| From: amellor@CASABLANCA.BBN.COM (Art Mellor) | | Try this: Below you will find a new set of termcap entrys. Any xterm termcap definition should include a scrolling region definition. If it doesn't, some software will use multiple insert and delete lines to do partial page scrolls. On some server implementations, such scrolls can take half a minute to complete depending on the number of lines affected. Therefore, if you're going to distribute a new xterm temcap definition please include ``:cs=\E[%i%d;%dr:'' which defines how to do scrolling regions for xterm. Casey