49 const char *swatch =
"";
66 if (!ts || (num == 0))
69 for (
int i = 0; i < num; i++)
72 const char *swatch =
"";
94 const char *swatch =
"";
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
#define ARRAY_EMPTY(head)
Check if an array is empty.
#define ARRAY_SIZE(head)
The number of elements stored.
int buf_add_printf(struct Buffer *buf, const char *fmt,...)
Format a string appending a Buffer.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
Color and attribute parsing.
struct AttrColor * simple_color_get(enum ColorId cid)
Get the colour of an object by its ID.
@ MT_COLOR_NORMAL
Plain text.
const char * name_color_id(int cid)
const char * color_log_color(color_t fg, color_t bg)
Get a colourful string to represent a colour in the log.
#define mutt_debug(LEVEL,...)
@ LL_DEBUG1
Log at debug level 1.
Convenience wrapper for the library headers.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
A curses colour and its attributes.
struct CursesColor * curses_color
Underlying Curses colour.
String manipulation buffer.
Colour in the ncurses palette.
color_t fg
Foreground colour.
color_t bg
Background colour.
A line of text in the pager.
short search_arr_size
Number of items in search array.
struct TextSyntax * search
Array of search text in the line.
bool cont_line
Continuation of a previous line (wrapped by NeoMutt)
short cid
Default line colour, e.g. MT_COLOR_SIGNATURE.
LOFF_T offset
Offset into Email file (PagerPrivateData->fp)
bool cont_header
Continuation of a header line (wrapped by MTA)
short syntax_arr_size
Number of items in syntax array.
struct TextSyntax * syntax
Array of coloured text in the line.
Highlighting for a piece of text.
const struct AttrColor * attr_color
Curses colour of text.
int last
Last character in line to be coloured (not included)
int first
First character in line to be coloured.