Re: Color problem
* Ken Weingold <bofh@xxxxxxx> [2005-08-10 17:34 -0400]:
> Okay, well I'm not sure what to do then. This is on NetBSD 2.0 with
> ncurses 5.2. I have the color of the indicator set to black - cyan.
> It works just fine except for one case: on new mails, where I have
> them set to brightcyan - default. On those, the indicator is still
> cyan, but the text is almost unreadable, with almost no contrast to
> the cyan. No even sure what color it is. With the same version of
> ncurses in mutt 1.4.x, the text on the cyan indicator was always
> black. Actually, I just realized that it's also doing this with
> flagged messages, which are green.
There was a change in mutt's coloring behaviour I didn't like. I
thought it was a local problem and created the attached patch as a
workaround. Perhaps it helps you.
Nicolas
--
http://www.rachinsky.de/nicolas
--- PATCHES~ Tue Nov 6 19:59:33 2001
+++ PATCHES Tue Nov 6 19:59:42 2001
@@ -1,0 +1 @@
+patch-1.5.1.nr.indicator_not_bright
--- menu.c Mon Aug 12 11:29:17 2002
+++ menu.c Mon Aug 12 12:16:41 2002
@@ -237,6 +237,7 @@
{
ADDCOLOR (MT_COLOR_INDICATOR);
BKGDSET (MT_COLOR_INDICATOR);
+ attroff(A_BOLD);
}
CLEARLINE (i - menu->top + menu->offset);
@@ -303,6 +304,7 @@
attrset (menu->color (menu->current));
ADDCOLOR (MT_COLOR_INDICATOR);
BKGDSET (MT_COLOR_INDICATOR);
+ attroff(A_BOLD);
CLEARLINE (menu->current - menu->top + menu->offset);
print_enriched_string (menu->color(menu->current), (unsigned char *) buf,
0);
SETCOLOR (MT_COLOR_NORMAL);
--- menu.c.orig Mon Aug 12 22:22:40 2002
+++ menu.c Mon Aug 12 22:24:13 2002
@@ -340,6 +340,7 @@
attrset (menu->color (menu->current));
ADDCOLOR (MT_COLOR_INDICATOR);
BKGDSET (MT_COLOR_INDICATOR);
+ attroff(A_BOLD);
clrtoeol ();
print_enriched_string (menu->color(menu->current), (unsigned char *) buf,
0);
SETCOLOR (MT_COLOR_NORMAL);