aboutsummaryrefslogtreecommitdiff
path: root/style.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-08 19:10:09 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-08 19:10:09 +0100
commita61cbf1c33d8d61b564f95053cbf96443126dd87 (patch)
tree14ede2310b94ea68fb5c2366e7cbb9798f13ff78 /style.c
parent708e9bc072eddc2a3d83bc5df45de2825b011ed1 (diff)
downloadrtmux-a61cbf1c33d8d61b564f95053cbf96443126dd87.tar.gz
rtmux-a61cbf1c33d8d61b564f95053cbf96443126dd87.tar.bz2
rtmux-a61cbf1c33d8d61b564f95053cbf96443126dd87.zip
Add a customize mode where options may be browsed and changed, includes adding
a brief description of each option. Bound to "C" by default.
Diffstat (limited to 'style.c')
-rw-r--r--style.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/style.c b/style.c
index 3c615852..08614f9c 100644
--- a/style.c
+++ b/style.c
@@ -31,6 +31,7 @@
/* Default style. */
static struct style style_default = {
{ { { ' ' }, 0, 1, 1 }, 0, 0, 8, 8, 0 },
+ 0,
8,
STYLE_ALIGN_DEFAULT,
@@ -78,7 +79,11 @@ style_parse(struct style *sy, const struct grid_cell *base, const char *in)
sy->gc.bg = base->bg;
sy->gc.attr = base->attr;
sy->gc.flags = base->flags;
- } else if (strcasecmp(tmp, "push-default") == 0)
+ } else if (strcasecmp(tmp, "ignore") == 0)
+ sy->ignore = 1;
+ else if (strcasecmp(tmp, "noignore") == 0)
+ sy->ignore = 0;
+ else if (strcasecmp(tmp, "push-default") == 0)
sy->default_type = STYLE_DEFAULT_PUSH;
else if (strcasecmp(tmp, "pop-default") == 0)
sy->default_type = STYLE_DEFAULT_POP;