* please see the file GPL in the top level source directory.
*/
-#include <lib-lib/lib-lib.h>
-
-#include "curses.h"
-
+#include <lib-ui/lib-ui.h>
#include "pattern.h"
#include "mutt.h"
{"red", COLOR_RED},
{"white", COLOR_WHITE},
{"yellow", COLOR_YELLOW},
-#if defined (HAVE_USE_DEFAULT_COLORS)
{"default", COLOR_DEFAULT},
-#endif
{0, 0}
};
p->bg = bg;
p->fg = fg;
-#if defined (HAVE_USE_DEFAULT_COLORS)
if (fg == COLOR_DEFAULT)
fg = -1;
if (bg == COLOR_DEFAULT)
bg = -1;
-#endif
init_pair (i, fg, bg);
return 0;
-#ifdef HAVE_USE_DEFAULT_COLORS
if (!option (OPTNOCURSES) && has_colors ()
/* delay use_default_colors() until needed, since it initializes things */
&& (fg == COLOR_DEFAULT || bg == COLOR_DEFAULT)
m_strcpy(err->data, err->dsize, _("default colors not supported"));
return (-1);
}
-#endif /* HAVE_USE_DEFAULT_COLORS */
if (object == MT_COLOR_HEADER)
r = add_pattern (&ColorHdrList, buf->data, 0, fg, bg, attr, err, 0);
else
ColorDefs[object] = fgbgattr_to_color (fg, bg, attr);
-#ifdef HAVE_BKGDSET
if (object == MT_COLOR_NORMAL && !option (OPTNOCURSES) && has_colors ())
- BKGDSET (MT_COLOR_NORMAL);
-#endif
+ BKGDSET(main_w, MT_COLOR_NORMAL);
return (r);
}