From f1abd792d510af76da72600007b09bcc2b748989 Mon Sep 17 00:00:00 2001 From: Haz Date: Thu, 29 Jul 2021 00:34:03 +0000 Subject: Add ansi escaping values and theming keyword for dimmed text This adds `[not]dim` to the set of accepted theme keywords --- ui-terminal.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui-terminal.c') diff --git a/ui-terminal.c b/ui-terminal.c index babc5a6..264c6d3 100644 --- a/ui-terminal.c +++ b/ui-terminal.c @@ -171,6 +171,10 @@ static bool ui_style_define(UiWin *w, int id, const char *style) { cell_style.attr |= CELL_ATTR_BOLD; } else if (!strcasecmp(option, "notbold")) { cell_style.attr &= ~CELL_ATTR_BOLD; + } else if (!strcasecmp(option, "dim")) { + cell_style.attr |= CELL_ATTR_DIM; + } else if (!strcasecmp(option, "notdim")) { + cell_style.attr &= ~CELL_ATTR_DIM; } else if (!strcasecmp(option, "italics")) { cell_style.attr |= CELL_ATTR_ITALIC; } else if (!strcasecmp(option, "notitalics")) { -- cgit v1.2.3