diff options
| author | Haz <hyphens@pm.me> | 2021-07-29 00:34:03 +0000 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2023-12-02 16:35:44 -0700 |
| commit | f1abd792d510af76da72600007b09bcc2b748989 (patch) | |
| tree | d8c0104e087f0fee049cafc66864aeabbb01c97a /ui-terminal.c | |
| parent | cbdcdcef213de0d073d987de7fc5a7764dcf5688 (diff) | |
| download | vis-f1abd792d510af76da72600007b09bcc2b748989.tar.gz vis-f1abd792d510af76da72600007b09bcc2b748989.tar.xz | |
Add ansi escaping values and theming keyword for dimmed text
This adds `[not]dim` to the set of accepted theme keywords
Diffstat (limited to 'ui-terminal.c')
| -rw-r--r-- | ui-terminal.c | 4 |
1 files changed, 4 insertions, 0 deletions
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")) { |
