60 if ((cc->
fg ==
fg) && (cc->
bg ==
bg))
88 if (
index >= COLOR_PAIRS)
90 static bool warned =
false;
104#ifdef NEOMUTT_DIRECT_COLORS
105 int rc = init_extended_pair(
index,
fg,
bg);
int NumCursesColors
Number of ncurses colours left to allocate.
static int curses_color_init(int fg, int bg)
Initialise a new Curses colour.
void curses_color_free(struct CursesColor **ptr)
Free a CursesColor.
struct CursesColor * curses_colors_find(int fg, int bg)
Find a Curses colour by foreground/background.
struct CursesColor * curses_color_new(int fg, int bg)
Create a new CursesColor.
struct CursesColorList CursesColors
List of all Curses colours.
void curses_colors_init(void)
Initialise the Curses colours.
int color_debug(enum LogLevel level, const char *format,...)
Write to the log file.
void curses_color_dump(struct CursesColor *cc, const char *prefix)
Log one Curses colour.
Convenience wrapper for the gui headers.
@ LL_DEBUG5
Log at debug level 5.
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Convenience wrapper for the library headers.
#define TAILQ_FOREACH(var, head, field)
#define TAILQ_INSERT_TAIL(head, elm, field)
#define TAILQ_REMOVE(head, elm, field)
#define TAILQ_INSERT_BEFORE(listelm, elm, field)
Colour in the ncurses palette.
uint32_t fg
Foreground colour.
uint32_t bg
Background colour.
short ref_count
Number of users.