63#ifdef A_ITALIC_DEFINED
77#ifdef NEOMUTT_DIRECT_COLORS
119 struct AttrColorList *acl,
bool dry_run)
126 total_len += seq_len;
int ansi_color_parse(const char *str, struct AnsiColor *ansi, struct AttrColorList *acl, bool dry_run)
Parse a string of ANSI escape sequence.
color_t color_xterm256_to_24bit(const color_t color)
Convert a xterm color to its RGB value.
static void ansi_color_list_add(struct AttrColorList *acl, struct AnsiColor *ansi)
Add an Ansi colour to the list.
struct AttrColor * attr_color_list_find(struct AttrColorList *acl, color_t fg, color_t bg, int attrs)
Find an AttrColor in a list.
struct AttrColor * attr_color_new(void)
Create a new AttrColor.
@ CT_SIMPLE
Simple colour, e.g. "Red".
@ CT_PALETTE
Palette colour, e.g. "color207".
struct AttrColor * simple_color_get(enum ColorId cid)
Get the colour of an object by its ID.
Color and attribute parsing.
@ MT_COLOR_BOLD
Bold text.
@ MT_COLOR_ITALIC
Italic text.
@ MT_COLOR_UNDERLINE
Underlined text.
int32_t color_t
Type for 24-bit colour value.
struct CursesColor * curses_color_new(color_t fg, color_t bg)
Create a new CursesColor.
Convenience wrapper for the gui headers.
Convenience wrapper for the library headers.
int ansi_color_parse_single(const char *buf, struct AnsiColor *ansi, bool dry_run)
Parse a single ANSI escape sequence.
#define TAILQ_INSERT_TAIL(head, elm, field)
int attrs
Text attributes, e.g. A_BOLD.
const struct AttrColor * attr_color
Curses colour of text.
struct ColorElement bg
Background colour.
struct ColorElement fg
Foreground colour.
A curses colour and its attributes.
struct ColorElement bg
Background colour.
struct ColorElement fg
Foreground colour.
int attrs
Text attributes, e.g. A_BOLD.
struct CursesColor * curses_color
Underlying Curses colour.
enum ColorType type
Type of Colour.
Colour in the ncurses palette.
color_t fg
Foreground colour.
color_t bg
Background colour.