Expand colours as formats like styles.

This commit is contained in:
nicm
2026-06-25 16:32:42 +00:00
parent 7c1ef6a387
commit 0d016195ac
9 changed files with 101 additions and 38 deletions

3
tmux.h
View File

@@ -2307,6 +2307,7 @@ enum options_table_type {
#define OPTIONS_TABLE_IS_ARRAY 0x1
#define OPTIONS_TABLE_IS_HOOK 0x2
#define OPTIONS_TABLE_IS_STYLE 0x4
#define OPTIONS_TABLE_IS_COLOUR 0x8
struct options_table_entry {
const char *name;
@@ -3896,6 +3897,8 @@ int popup_modify(struct client *, const char *, const char *,
/* style.c */
int style_parse(struct style *,const struct grid_cell *,
const char *);
int style_parse_colour(struct style *,
const struct grid_cell *, const char *);
const char *style_tostring(struct style *);
struct style *style_add(struct grid_cell *, struct options *,
const char *, struct format_tree *);