terminal color partly working - need help

hazmat

Rusher of Din
I found the termcap entry below, which actually made vim be colorized. Neither lynx nor mutt are, though. I believe mutt did compile with ncurses as well. Anyone know what I might be missing here? Thanks.


d0|vt100|vt100-am|vt100am|dec vt100:\
:pa#64:Co#8:Sf=\E[3%dm:Sb=\E[4%dm:eek:p=\E[m:AF=\E[3%dm:AB=\E[4%dm:\
:do=^J:co#80:li#24:cl=\E[;H\E[2J:sf=2*\ED:\
:le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\
:ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\
:md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:\
:rf=/usr/share/tabset/vt100:\
:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[;r\E[0m\E(B\E)B\E[2J:\
:ks=\E[?1h\E=:ke=\E[?1l\E>:\
:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
:ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=2*\EM:vt#3:xn:\
:sc=\E7:rc=\E8:cs=\E[%i%d;%dr:
dl|vt200|vt220|vt200-js|vt220-js|dec vt200 series with jump scroll:\
:im=\E[4h:ei=\E[4l:mi:dc=\E[P:dm=:ed=:al=\E[L:dl=\E[M:\
:cs=\E[%i%d;%dr:sf=\ED:sr=\EM:sb=\EM:\
:ce=\E[K:cl=\E[H\E[J:cd=\E[J:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\
:so=\E[7m:se=\E[27m:us=\E[4m:ue=\E[24m:\
:md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:\
:tc=vt100:
 
Woops, smilies. Sorry.

d0|vt100|vt100-am|vt100am|dec vt100:\
:pa#64:Co#8:Sf=\E[3%dm:Sb=\E[4%dm:eek:p=\E[m:AF=\E[3%dm:AB=\E[4%dm:\
:do=^J:co#80:li#24:cl=\E[;H\E[2J:sf=2*\ED:\
:le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\
:ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\
:md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:\
:rf=/usr/share/tabset/vt100:\
:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[;r\E[0m\E(B\E)B\E[2J:\
:ks=\E[?1h\E=:ke=\E[?1l\E>:\
:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
:ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=2*\EM:vt#3:xn:\
:sc=\E7:rc=\E8:cs=\E[%i%d;%dr:
dl|vt200|vt220|vt200-js|vt220-js|dec vt200 series with jump scroll:\
:im=\E[4h:ei=\E[4l:mi:dc=\E[P:dm=:ed=:al=\E[L:dl=\E[M:\
:cs=\E[%i%d;%dr:sf=\ED:sr=\EM:sb=\EM:\
:ce=\E[K:cl=\E[H\E[J:cd=\E[J:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\
:so=\E[7m:se=\E[27m:us=\E[4m:ue=\E[24m:\
:md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:\
:tc=vt100:
 
I have since lost it to a bad disk crash but I did have mutt compiled w/ ncurses and it was fully colorized.

You might want to doublecheck the mutt compile or do a -v
on it as that will tell you the compile options.
 
I copied and pasted the termcap lines in this discussion thread to a .termcap file (and a termcap file, just in case). When I do a vim (6.0) on a file, I get this error first:

"test.sh" 4L, 48C
Error detected while processing /usr/local/share/vim/vim60/syntax/sh.vim:
line 321:
E394: Didn't find region item for shRepeat
Invalid argument: shUntilSync^Igrouphere^IshRepeat^I"\<until\>"
line 322:
E394: Didn't find region item for shRepeat
Invalid argument: shWhileSync^Igrouphere^IshRepeat^I"\<while\>"
Hit ENTER or type command to continue

And then there's just the original hiliting, with bold and underline instead of colors. Is there something else I should do to make colors happen in vim? Can someone put a step by step list of things to do to put color in vim?

Thanks,
G
 
Back
Top