aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRudy Dellomas III <dther@dther.xyz>2024-04-19 21:54:42 +1000
committerRandy Palamar <randy@rnpnr.xyz>2024-04-21 08:18:15 -0600
commit65045941277df247e089789e50aa29862d4563bc (patch)
treec9266dce203235b2678a92154cba02a8ca302850
parentf01cf2c3cd30536344534fa24c8a3b3e63f7f982 (diff)
downloadvis-65045941277df247e089789e50aa29862d4563bc.tar.gz
vis-65045941277df247e089789e50aa29862d4563bc.tar.xz
Disable reverse with "notreverse" in style definitions
-rw-r--r--ui-terminal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui-terminal.c b/ui-terminal.c
index cf34378..dd04f76 100644
--- a/ui-terminal.c
+++ b/ui-terminal.c
@@ -167,6 +167,8 @@ static bool ui_style_define(UiWin *w, int id, const char *style) {
for (*value++ = '\0'; *value == ' '; value++);
if (!strcasecmp(option, "reverse")) {
cell_style.attr |= CELL_ATTR_REVERSE;
+ } else if (!strcasecmp(option, "notreverse")) {
+ cell_style.attr &= CELL_ATTR_REVERSE;
} else if (!strcasecmp(option, "bold")) {
cell_style.attr |= CELL_ATTR_BOLD;
} else if (!strcasecmp(option, "notbold")) {