NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
quoted.h
Go to the documentation of this file.
1
23#ifndef MUTT_COLOR_QUOTED_H
24#define MUTT_COLOR_QUOTED_H
25
26#include "config.h"
27#include <stdbool.h>
28#include "core/lib.h"
29#include "attr.h"
30#include "color.h"
31
32struct Buffer;
33
35#define COLOR_QUOTES_MAX 10
36
37extern struct AttrColor QuotedColors[];
38
39#define COLOR_QUOTED(cid) ((cid) == MT_COLOR_QUOTED)
40
41void quoted_colors_init (void);
42void quoted_colors_reset (void);
43void quoted_colors_cleanup(void);
44
45struct AttrColor * quoted_colors_get(int q);
47
48bool quoted_colors_parse_color (enum ColorId cid, struct AttrColor *ac_val, int q_level, int *rc, struct Buffer *err);
49enum CommandResult quoted_colors_parse_uncolor(enum ColorId cid, int q_level, struct Buffer *err);
50
51#endif /* MUTT_COLOR_QUOTED_H */
Colour and attributes.
Color and attribute parsing.
ColorId
List of all coloured objects.
Definition: color.h:36
CommandResult
Error codes for command_t parse functions.
Definition: command.h:36
Convenience wrapper for the core headers.
enum CommandResult quoted_colors_parse_uncolor(enum ColorId cid, int q_level, struct Buffer *err)
Parse the 'uncolor quoted' command.
Definition: quoted.c:184
struct AttrColor * quoted_colors_get(int q)
Return the color of a quote, cycling through the used quotes.
Definition: quoted.c:86
bool quoted_colors_parse_color(enum ColorId cid, struct AttrColor *ac_val, int q_level, int *rc, struct Buffer *err)
Parse the 'color quoted' command.
Definition: quoted.c:125
int quoted_colors_num_used(void)
Return the number of used quotes.
Definition: quoted.c:97
void quoted_colors_init(void)
Initialise the Quoted colours.
Definition: quoted.c:49
void quoted_colors_reset(void)
Reset the quoted-email colours.
Definition: quoted.c:63
void quoted_colors_cleanup(void)
Cleanup the quoted-email colours.
Definition: quoted.c:76
struct AttrColor QuotedColors[]
Array of colours for quoted email text.
Definition: quoted.c:43
A curses colour and its attributes.
Definition: attr.h:66
String manipulation buffer.
Definition: buffer.h:36