NeoMutt
2024-12-12-19-ge4b57e
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
34
struct
AnsiColor
35
{
36
struct
ColorElement
fg
;
37
struct
ColorElement
bg
;
38
int
attrs
;
39
const
struct
AttrColor
*
attr_color
;
40
};
41
42
int
ansi_color_parse
(
const
char
*str,
struct
AnsiColor
*ansi,
struct
AttrColorList *acl,
bool
dry_run);
43
44
#endif
/* MUTT_COLOR_ANSI_H */
ansi_color_parse
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
attr.h
Colour and attributes.
AnsiColor
An ANSI escape sequence.
Definition:
ansi.h:35
AnsiColor::attrs
int attrs
Text attributes, e.g. A_BOLD.
Definition:
ansi.h:38
AnsiColor::attr_color
const struct AttrColor * attr_color
Curses colour of text.
Definition:
ansi.h:39
AnsiColor::bg
struct ColorElement bg
Background colour.
Definition:
ansi.h:37
AnsiColor::fg
struct ColorElement fg
Foreground colour.
Definition:
ansi.h:36
AttrColor
A curses colour and its attributes.
Definition:
attr.h:66
ColorElement
One element of a Colour.
Definition:
attr.h:56