> doesn't exist with ncurses, I ask again: Could any of you, please, correct
> the problem with lynx compiled with slang that shows colors 4 and 5 in color
> _and_ underlined instead of just in color?
I think we need to praise Tom for his tireless efforts, and grit our teeth
and forgive him for his understandable bias towards ncurses. Slang is not
really his problem; we should thank him just for letting support for it stay.
That said, I, too, have pretty much dropped ncurses in favor of slang because
the latter is so much easier to compile and maintain on limited resource
machines and especially within the confines of a single account. My lynx
has mostly and probably forever will be compiled against the slang library.
The fact is, though, I don't see the *problem* you do. It may have a lot
to do with my almost exclusive use of TeraTerm on a Windows machine to
access Lynx through a shell account on a Unix machine. Recently I have
discovered that using the very same Lynx and configuration when telnetting
from a i386 NetBSD console gives a very different, and I must say, much
more "rich" view of Lynx (_all_ the fore- and background colors exactly as in
lynx.cfg).
Without knowing how you access Lynx it's hard to say much, but if you don't
want COLORs 4 and 5 underlined, then I think you can go two routes depending
on where you want to redefine them. Easiest might be to change your terminfo
description, i.e., change smul and rmul (I *think* those are the ones.) to
nullify them or change them to bold or something rather than have underlining.
The other way would be to patch Lynx to remove the underline attribute
associated with those colors. To be thorough you probably would have to
grep through the /src source files for things like "USE_SLANG," "UNDERLINE_,"
"start_underline," etc. If you get something that works, you may want to
submit a patch to lynx-dev, since as Klaus has pointed out, some (a lot?)
of those if clauses with USE_SLANG are probably no longer needed. Klaus
also questioned these lines in LYCurses.c:
728 SLtt_add_color_attribute(4, SLTT_ULINE_MASK);
729 SLtt_add_color_attribute(5, SLTT_ULINE_MASK);
Maybe you can just delete them; worth a try if underlining is so undesirable.
Anyway, making the changes that would be necessary to uncouple underlining
from COLORs 4 and 5 might not be an easy task because of the pervasiveness
of past reliance on special treatment for slang versus curses.
__Henry