39 if (!ts || (num == 0))
42 for (
int i = 0; i < num; i++)
45 const char *swatch =
"";
46 if (!ts[i].attr_color)
67 const char *swatch =
"";
81 line->
cont_line ?
"\033[1;32myes\033[0m" :
"\033[31mno\033[0m");
86 line->
cont_header ?
"\033[1;32myes\033[0m" :
"\033[31mno\033[0m");
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
void get_colorid_name(unsigned int cid, struct Buffer *buf)
Get the name of a color id.
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 * 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_QUOTED.
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.