diff options
| author | Rudy Dellomas III <dther@dther.xyz> | 2024-04-19 21:54:42 +1000 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-04-21 08:18:15 -0600 |
| commit | 65045941277df247e089789e50aa29862d4563bc (patch) | |
| tree | c9266dce203235b2678a92154cba02a8ca302850 /ui-terminal.c | |
| parent | f01cf2c3cd30536344534fa24c8a3b3e63f7f982 (diff) | |
| download | vis-65045941277df247e089789e50aa29862d4563bc.tar.gz vis-65045941277df247e089789e50aa29862d4563bc.tar.xz | |
Disable reverse with "notreverse" in style definitions
Diffstat (limited to 'ui-terminal.c')
| -rw-r--r-- | ui-terminal.c | 2 |
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")) { |
