NeoMutt  2025-09-05-55-g97fc89
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
parse_color.h File Reference

Parse colour commands. More...

#include "mutt/lib.h"
#include "core/lib.h"
+ Include dependency graph for parse_color.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

enum CommandResult parse_attr_spec (struct Buffer *buf, struct Buffer *s, struct AttrColor *ac, struct Buffer *err)
 Parse an attribute description - Implements parser_callback_t -.
 
enum CommandResult parse_color_pair (struct Buffer *buf, struct Buffer *s, struct AttrColor *ac, struct Buffer *err)
 Parse a pair of colours - Implements parser_callback_t -.
 

Variables

const struct Mapping ColorNames []
 Mapping between a colour name and an ncurses colour.
 

Detailed Description

Parse colour commands.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file parse_color.h.

Variable Documentation

◆ ColorNames

const struct Mapping ColorNames[]
extern

Mapping between a colour name and an ncurses colour.

Definition at line 42 of file parse_color.c.

42 {
43 // clang-format off
44 { "black", COLOR_BLACK },
45 { "blue", COLOR_BLUE },
46 { "cyan", COLOR_CYAN },
47 { "green", COLOR_GREEN },
48 { "magenta", COLOR_MAGENTA },
49 { "red", COLOR_RED },
50 { "white", COLOR_WHITE },
51 { "yellow", COLOR_YELLOW },
52 { "default", COLOR_DEFAULT },
53 { 0, 0 },
54 // clang-format on
55};
#define COLOR_DEFAULT
Definition color.h:103