NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
commands.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_COLOR_COMMANDS_H
24
#define MUTT_COLOR_COMMANDS_H
25
26
#include "
core/lib.h
"
27
#include "
mutt/lib.h
"
28
29
struct
AttrColor
;
30
struct
ParseContext
;
31
struct
ParseError
;
32
50
typedef
enum
CommandResult
(*
parser_callback_t
)(
const
struct
Command
*cmd,
struct
Buffer
*line,
struct
AttrColor
*ac,
struct
Buffer
*err);
51
52
enum
CommandResult
parse_color
(
const
struct
Command
*cmd,
struct
Buffer
*line,
const
struct
ParseContext
*pc,
struct
ParseError
*pe);
53
enum
CommandResult
parse_mono
(
const
struct
Command
*cmd,
struct
Buffer
*line,
const
struct
ParseContext
*pc,
struct
ParseError
*pe);
54
enum
CommandResult
parse_uncolor
(
const
struct
Command
*cmd,
struct
Buffer
*line,
const
struct
ParseContext
*pc,
struct
ParseError
*pe);
55
enum
CommandResult
parse_uncolor_command
(
const
struct
Command
*cmd,
struct
Buffer
*line,
const
struct
ParseContext
*pc,
struct
ParseError
*pe);
56
enum
CommandResult
parse_unmono
(
const
struct
Command
*cmd,
struct
Buffer
*line,
const
struct
ParseContext
*pc,
struct
ParseError
*pe);
57
58
void
get_colorid_name
(
unsigned
int
color_id,
struct
Buffer
*buf);
59
60
#endif
/* MUTT_COLOR_COMMANDS_H */
parser_callback_t
enum CommandResult(* parser_callback_t)(const struct Command *cmd, struct Buffer *line, struct AttrColor *ac, struct Buffer *err)
Definition
commands.h:50
get_colorid_name
void get_colorid_name(unsigned int color_id, struct Buffer *buf)
Get the name of a Colour ID.
Definition
commands.c:128
CommandResult
CommandResult
Error codes for command_t parse functions.
Definition
command.h:37
lib.h
Convenience wrapper for the core headers.
parse_uncolor
enum CommandResult parse_uncolor(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'uncolor' command - Implements Command::parse() -.
Definition
commands.c:448
parse_unmono
enum CommandResult parse_unmono(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'unmono' command - Implements Command::parse() -.
Definition
commands.c:486
parse_mono
enum CommandResult parse_mono(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'mono' command - Implements Command::parse() -.
Definition
commands.c:541
parse_uncolor_command
enum CommandResult parse_uncolor_command(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse an 'uncolor' command - Implements Command::parse() -.
Definition
commands.c:200
parse_color
enum CommandResult parse_color(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'color' command - Implements Command::parse() -.
Definition
commands.c:508
lib.h
Convenience wrapper for the library headers.
AttrColor
A curses colour and its attributes.
Definition
attr.h:65
Buffer
String manipulation buffer.
Definition
buffer.h:36
Command
Definition
command.h:161
ParseContext
Context for config parsing (history/backtrace).
Definition
pcontext.h:34
ParseError
Detailed error information from config parsing.
Definition
perror.h:34