Parse colour commands. More...
#include "config.h"#include <stdbool.h>#include <stddef.h>#include "mutt/lib.h"#include "config/lib.h"#include "core/lib.h"#include "gui/lib.h"#include "mutt.h"#include "commands.h"#include "parse/lib.h"#include "attr.h"#include "color.h"#include "debug.h"#include "dump.h"#include "globals.h"#include "notify2.h"#include "parse_color.h"#include "regex4.h"#include "simple2.h"
Include dependency graph for commands.c:Go to the source code of this file.
Functions | |
| void | get_colorid_name (unsigned int cid, struct Buffer *buf) |
| Get the name of a Colour ID. | |
| static enum CommandResult | parse_object (const struct Command *cmd, struct Buffer *line, enum ColorId *cid, struct Buffer *err) |
| Identify a colour object. | |
| enum CommandResult | parse_uncolor_command (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse an 'uncolor' command - Implements Command::parse() -. | |
| static enum CommandResult | parse_color_command (const struct Command *cmd, struct Buffer *line, struct Buffer *err, parser_callback_t callback) |
| Parse a 'color' command. | |
| enum CommandResult | parse_uncolor (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'uncolor' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unmono (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'unmono' command - Implements Command::parse() -. | |
| enum CommandResult | parse_color (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'color' command - Implements Command::parse() -. | |
| enum CommandResult | parse_mono (const struct Command *cmd, struct Buffer *line, struct Buffer *err) |
| Parse the 'mono' command - Implements Command::parse() -. | |
Variables | |
| const struct Mapping | ColorFields [] |
| Mapping of colour names to their IDs. | |
Parse colour commands.
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 commands.c.
| void get_colorid_name | ( | unsigned int | cid, |
| struct Buffer * | buf ) |
Get the name of a Colour ID.
| cid | Colour, e.g. MT_COLOR_HEADER |
| buf | Buffer for result |
Definition at line 127 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Identify a colour object.
| [in] | cmd | Command being parsed |
| [in] | line | Buffer containing string to be parsed |
| [out] | cid | Object type, e.g. MT_COLOR_TILDE |
| [out] | err | Buffer for error messages |
| CommandResult | Result e.g. MUTT_CMD_SUCCESS |
Identify a colour object, e.g. "message", "compose header"
Definition at line 146 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Parse a 'color' command.
| cmd | Command being parsed |
| line | Buffer containing string to be parsed |
| err | Buffer for error messages |
| callback | Function to handle command - Implements parser_callback_t |
| CommandResult | Result e.g. MUTT_CMD_SUCCESS |
Usage:
Definition at line 294 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function:| const struct Mapping ColorFields[] |
Mapping of colour names to their IDs.
Definition at line 54 of file commands.c.