Parse colour commands. More...
#include "config.h"#include <stdbool.h>#include <stddef.h>#include <stdint.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 (struct Buffer *buf, struct Buffer *s, enum ColorId *cid, struct Buffer *err) |
| Identify a colour object. | |
| static enum CommandResult | parse_uncolor_command (struct Buffer *buf, struct Buffer *s, struct Buffer *err) |
| Parse an 'uncolor' command. | |
| static enum CommandResult | parse_color_command (struct Buffer *buf, struct Buffer *s, struct Buffer *err, parser_callback_t callback, bool color) |
| Parse a 'color' command. | |
| enum CommandResult | parse_uncolor (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'uncolor' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unmono (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'unmono' command - Implements Command::parse() -. | |
| enum CommandResult | parse_color (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'color' command - Implements Command::parse() -. | |
| enum CommandResult | parse_mono (struct Buffer *buf, struct Buffer *s, intptr_t data, 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 128 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] | buf | Temporary Buffer space |
| [in] | s | 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 147 of file commands.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Parse an 'uncolor' command.
| buf | Temporary Buffer space |
| s | Buffer containing string to be parsed |
| err | Buffer for error messages |
| CommandResult | Result e.g. MUTT_CMD_SUCCESS |
Usage:
Definition at line 190 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.
| buf | Temporary Buffer space |
| s | Buffer containing string to be parsed |
| err | Buffer for error messages |
| callback | Function to handle command - Implements parser_callback_t |
| color | If true "color", else "mono" |
| CommandResult | Result e.g. MUTT_CMD_SUCCESS |
Usage:
Definition at line 272 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 55 of file commands.c.