Parse colour commands. More...
Include dependency graph for commands.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Typedefs | |
| typedef enum CommandResult(* | parser_callback_t) (struct Buffer *buf, struct Buffer *s, struct AttrColor *ac, struct Buffer *err) |
Functions | |
| 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() -. | |
| 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() -. | |
| void | get_colorid_name (unsigned int color_id, struct Buffer *buf) |
| Get the name of a Colour ID. | |
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.h.
| typedef enum CommandResult(* parser_callback_t) (struct Buffer *buf, struct Buffer *s, struct AttrColor *ac, struct Buffer *err) |
Definition at line 1 of file commands.h.
| 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: