<<< Date Index >>>     <<< Thread Index >>>

Re: indexcolor + color index = interesting highlighting



On Wed, Apr 13, 2005 at 04:52:06PM -0700, Mun Johl wrote:
> Hi,
> 
> Particulars:
>    Solaris 8
>    Mutt 1.5.9 (configured with curses: --with-curses)
>    Rxvt 2.7.10
> 
[...]
> Anyway, if I use indexcolor to highlight the author field using a
> non-bright color, it works fine unless I use a "color index" command to
> change the highlighting of the index line to a bright color.  In that
> case, the index_author highlighting is changed to the bright variant as
> well.  That caught me by surprise.
> 
> On the other hand, if I highlight the author field using a bright
> color, that color sticks no matter what the "color index" tries to do.
> 
> On a side note, it seems indexcolor takes precedence over "color index";
> I'm not sure if that is expected or not.

This is all expected. It comes from the fact that I use attron() to
set the color of the single fields, instead of attrset(). The reason
I did this was to get the behavior as seen on
<URL:http://greek0.net/~greek0/mutt/mutt-indexcolor-1.png>.

Notice that unread lines are bright throughout. This is accomplished
by having something like "color index brightdefault default ~N" in
my muttrc.

If indexcolor used attrset, the custom colored fields wouldn't be
bright. You couldn't even fix this by adding ~N in more places,
since not all index_* color options accept a pattern.

So it's a feature, not a bug :-).

Is this problematic for you? Perhaps we can find a solution if you
tell me more about what you want to achieve.

Cheers,
Greek0

Attachment: signature.asc
Description: Digital signature