NeoMutt  2025-12-11-58-g09398d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
commands.h
Go to the documentation of this file.
22
23#ifndef MUTT_COLOR_COMMANDS_H
24#define MUTT_COLOR_COMMANDS_H
25
26#include "config.h"
27#include "core/lib.h"
28#include "mutt/lib.h"
29
30struct AttrColor;
31
49typedef enum CommandResult (*parser_callback_t)(const struct Command *cmd, struct Buffer *line, struct AttrColor *ac, struct Buffer *err);
50
51enum CommandResult parse_color (const struct Command *cmd, struct Buffer *line, struct Buffer *err);
52enum CommandResult parse_mono (const struct Command *cmd, struct Buffer *line, struct Buffer *err);
53enum CommandResult parse_uncolor (const struct Command *cmd, struct Buffer *line, struct Buffer *err);
54enum CommandResult parse_uncolor_command(const struct Command *cmd, struct Buffer *line, struct Buffer *err);
55enum CommandResult parse_unmono (const struct Command *cmd, struct Buffer *line, struct Buffer *err);
56
57void get_colorid_name(unsigned int color_id, struct Buffer *buf);
58
59#endif /* MUTT_COLOR_COMMANDS_H */
enum CommandResult(* parser_callback_t)(const struct Command *cmd, struct Buffer *line, struct AttrColor *ac, struct Buffer *err)
Definition commands.h:49
void get_colorid_name(unsigned int color_id, struct Buffer *buf)
Get the name of a Colour ID.
Definition commands.c:127
CommandResult
Error codes for command_t parse functions.
Definition command.h:35
Convenience wrapper for the core headers.
enum CommandResult parse_mono(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'mono' command - Implements Command::parse() -.
Definition commands.c:536
enum CommandResult parse_unmono(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'unmono' command - Implements Command::parse() -.
Definition commands.c:485
enum CommandResult parse_uncolor_command(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse an 'uncolor' command - Implements Command::parse() -.
Definition commands.c:199
enum CommandResult parse_color(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'color' command - Implements Command::parse() -.
Definition commands.c:505
enum CommandResult parse_uncolor(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'uncolor' command - Implements Command::parse() -.
Definition commands.c:449
Convenience wrapper for the library headers.
A curses colour and its attributes.
Definition attr.h:66
String manipulation buffer.
Definition buffer.h:36