NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
ansi.h
Go to the documentation of this file.
1
23#ifndef MUTT_COLOR_ANSI_H
24#define MUTT_COLOR_ANSI_H
25
26#include <stdbool.h>
27#include "attr.h"
28
35{
38 int attrs;
39 const struct AttrColor *attr_color;
40};
41
42int ansi_color_parse(const char *str, struct AnsiColor *ansi, struct AttrColorList *acl, bool dry_run);
43
44#endif /* MUTT_COLOR_ANSI_H */
int ansi_color_parse(const char *str, struct AnsiColor *ansi, struct AttrColorList *acl, bool dry_run)
Parse a string of ANSI escape sequence.
Definition: ansi.c:118
Colour and attributes.
An ANSI escape sequence.
Definition: ansi.h:35
int attrs
Text attributes, e.g. A_BOLD.
Definition: ansi.h:38
const struct AttrColor * attr_color
Curses colour of text.
Definition: ansi.h:39
struct ColorElement bg
Background colour.
Definition: ansi.h:37
struct ColorElement fg
Foreground colour.
Definition: ansi.h:36
A curses colour and its attributes.
Definition: attr.h:66
One element of a Colour.
Definition: attr.h:56