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

Parse colour commands. More...

#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 43 of file parse_color.c.

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