NeoMutt  2025-12-11-694-ga89709
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
curses2.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_COLOR_CURSES2_H
24#define MUTT_COLOR_CURSES2_H
25
26#include <stdint.h>
27#include "mutt/lib.h"
28
30typedef int32_t color_t;
31
47TAILQ_HEAD(CursesColorList, CursesColor);
48
49void curses_color_free(struct CursesColor **ptr);
51
52void curses_colors_init(void);
54
55#endif /* MUTT_COLOR_CURSES2_H */
struct CursesColor * curses_color_new(color_t fg, color_t bg)
Create a new CursesColor.
Definition curses.c:151
void curses_color_free(struct CursesColor **ptr)
Free a CursesColor.
Definition curses.c:120
int32_t color_t
Type for 24-bit colour value.
Definition curses2.h:30
void curses_colors_init(void)
Initialise the Curses colours.
Definition curses.c:44
struct CursesColor * curses_colors_find(color_t fg, color_t bg)
Find a Curses colour by foreground/background.
Definition curses.c:57
Convenience wrapper for the library headers.
#define TAILQ_HEAD(name, type)
Definition queue.h:680
Colour in the ncurses palette.
Definition curses2.h:40
color_t fg
Foreground colour.
Definition curses2.h:41
TAILQ_ENTRY(CursesColor) entries
Linked list.
color_t bg
Background colour.
Definition curses2.h:42
short index
Index number.
Definition curses2.h:43
short ref_count
Number of users.
Definition curses2.h:44