Subject: Re: curses!
To: Brett Lymn <>
From: Patrick Welche <>
List: current-users
Date: 05/31/2000 10:57:25
On Wed, May 31, 2000 at 03:53:22PM +0930, Brett Lymn wrote:
> More than likely it is a truncated termcap problem.

As per previous message, printenv gives:

TERMCAP=xterm|vs100|xterms|xterm terminal emulator (X Window System):k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:am:bs:km:mi:ms:ut:xn:Co#8:co#80:it#8:li#24:pa#64:AB=\E[4%dm:AF=\E[3%dm:op=\E[m:*6=\E[4~:@0=\E[1~:@1=\EOE:@7=\EOF:@8=\EOM:F1=\E[23~:F2=\E[24~:F3=\E[25~:F4=\E[26~:F5=\E[28~:F6=\E[29~:F7=\E[31~:F8=\E[32~:F9=\E[33~:FA=\E[34~:k;=\E[21~:Km=\E[M:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:K1=\EOw:K2=\EOy:K3=\EOu:K4=\EOq:K5=\EOs:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ec=\E[%dX:ei=\E[4l: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>: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~:kD=\177:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\EOB:ke=\E[?1l\E>:kh=\EOH:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:ZZ=0x8095800:kb=\010

So yes, kb=backspace key is the most likely bit to get truncated.
I don't know if the order matters: elm complains about
Your terminal does not support the "move cursor up" function (cm).
yet it is near the middle of the entry.

> I have just
> committed a fix to tset, get that and install it and then try setting your
> TERMCAP environment variable using:
> eval `tset -sE`
> and see if that helps.  Beware if you are using csh or a variant
> thereof though because these will barf with a "Word too long" error
> because they see a word > 1024 characters long.

No luck :-(

As you say:
csh:  Erase is backspace. Word too long.
sh:   Erase is backspace. setenv: not found (bis)
ksh:  Erase is backspace. ksh: setenv: not found (bis)
bash: Erase is backspace. bash: setenv: command not found (bis)

Using a 1 May 2000 xsrc tree, and compiling that xterm fixes the backspace
problem. The TERMCAPs are identical (bar the ZZ pointer obviously). The
lynx/mutt/elm reverse video problems remain. So there are 2 problems, and
one is due to xterm..