NeoMutt  2025-09-05-43-g177ed6
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 <stdint.h>
28#include "core/lib.h"
29#include "mutt/lib.h"
30
31struct AttrColor;
32
45typedef enum CommandResult (*parser_callback_t)(struct Buffer *buf, struct Buffer *s, struct AttrColor *ac, struct Buffer *err);
46
47enum CommandResult parse_color (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
48enum CommandResult parse_mono (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
49enum CommandResult parse_uncolor(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
50enum CommandResult parse_unmono (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
51
52void get_colorid_name(unsigned int color_id, struct Buffer *buf);
53
54#endif /* MUTT_COLOR_COMMANDS_H */
enum CommandResult(* parser_callback_t)(struct Buffer *buf, struct Buffer *s, struct AttrColor *ac, struct Buffer *err)
Definition commands.h:45
void get_colorid_name(unsigned int color_id, struct Buffer *buf)
Get the name of a Colour ID.
Definition commands.c:128
CommandResult
Error codes for command_t parse functions.
Definition command.h:35
Convenience wrapper for the core headers.
enum CommandResult parse_uncolor(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'uncolor' command - Implements Command::parse() -.
Definition commands.c:422
enum CommandResult parse_unmono(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'unmono' command - Implements Command::parse() -.
Definition commands.c:443
enum CommandResult parse_mono(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'mono' command - Implements Command::parse() -.
Definition commands.c:475
enum CommandResult parse_color(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'color' command - Implements Command::parse() -.
Definition commands.c:453
Convenience wrapper for the library headers.
A curses colour and its attributes.
Definition attr.h:66
String manipulation buffer.
Definition buffer.h:36
char * data
Pointer to data.
Definition buffer.h:37