Subject: our xterm termcap
To: None <tech-userlevel@netbsd.org>
From: Simon Gerraty <sjg@juniper.net>
List: tech-userlevel
Date: 06/14/2002 17:30:37
Ok, rather than remember all I ever forgot about termcap, 
can anyone tell me what it is in our termcap entry for xterm
that causes scrollbars not to work when you run screen(1) and similar
utils?  So I can remove it :-)

If I just grab $TERMCAP from a freebsd box, everything works fine - I
can scrollback without having to put screen into its Copy Mode.
A comparison of the two TERMCAP entries is below.
Each one is output of; echo $TERMCAP | tr ':' '\012' | sort -u
I tried removing ZZ and ti,te but makes no difference.

What really irks me is I know the answer - but it refuses to surface
:-)

Thanks
--sjg

--- /homes/sjg/tmp/nb.tc        Fri Jun 14 17:00:28 2002
+++ /homes/sjg/tmp/fb.tc        Fri Jun 14 17:01:02 2002
@@ -1,34 +1,33 @@
 
-@1=\EOE
 @7=\EOF
 @8=\EOM
-AB=\E[4%dm
-AF=\E[3%dm
 AL=\E[%dL
-Co#8
 DC=\E[%dP
 DL=\E[%dM
 DO=\E[%dB
+F1=\E[23~
+F2=\E[24~
 IC=\E[%d@
-K1=\EOw
-K2=\EOy
-K3=\EOu
-K4=\EOq
-K5=\EOs
+K1=\EOq
+K2=\EOr
+K3=\EOs
+K4=\EOp
+K5=\EOn
 LE=\E[%dD
+RA=\E[?7l
 RI=\E[%dC
+SA=\E[?7h
 UP=\E[%dA
-ZZ=0x80a7000
-ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~
-ae=^O
+ac=llmmkkjjuuttvvwwqqxxnnpprr``aa
+ae=\E(B
 al=\E[L
 am
-as=^N
+as=\E(0
 bl=^G
 bs
 cd=\E[J
 ce=\E[K
-cl=\E[H\E[2J
+cl=\E[H\E[J
 cm=\E[%i%d;%dH
 co#80
 cr=^M
@@ -36,29 +35,28 @@
 ct=\E[3g
 dc=\E[P
 dl=\E[M
-do=^J
+do=\E[B
 ec=\E[%dX
-ei=\E[4l
+ei@
+eo
 ho=\E[H
 ic=\E[@
-im=\E[4h
-is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>
+if=/usr/share/tabset/vt100
+im@
+is=\E>\E[?1;3;4;5l\E[?7;8h\E[1;65r\E[65;1H
 it#8
+k0@
 k1=\EOP
-k1=\E[11~
 k2=\EOQ
-k2=\E[12~
 k3=\EOR
-k3=\E[13~
 k4=\EOS
-k4=\E[14~
 k5=\E[15~
 k6=\E[17~
 k7=\E[18~
 k8=\E[19~
 k9=\E[20~
 k;=\E[21~
-kD=\E[3~
+kD=^?
 kI=\E[2~
 kN=\E[6~
 kP=\E[5~
@@ -73,32 +71,30 @@
 ku=\EOA
 le=^H
 li#24
+mb=\E[5m
 md=\E[1m
 me=\E[m
 mi
 mr=\E[7m
 ms
 nd=\E[C
-op=\E[m
-pa#64
+nw=\EE
+pt
 rc=\E8
+rs=\E>\E[?1;3;4;5l\E[?7;8h
 sc=\E7
 se=\E[m
-sf=^J
+sf=\ED
 so=\E[7m
 sr=\EM
 st=\EH
 ta=^I
-te=\E[2J\E[?47l\E8
-ti=\E7\E[?47h
 ue=\E[m
 up=\E[A
 us=\E[4m
 ut
-vb=\E[?5h\E[?5l
-vb@
 ve=\E[?25h
 vi=\E[?25l
-vs=\E[?25h
+vt#3
 xn
-xterm|vs100|xterms|xterm terminal emulator (X Window System)
+xterm|vs100|xterm terminal emulator (X window system)