diff options
author | Jonas Schäfer <j.wielicki@sotecware.net> | 2020-05-10 15:05:16 +0200 |
---|---|---|
committer | Link Mauve <linkmauve@linkmauve.fr> | 2022-04-06 20:30:33 +0200 |
commit | be7542b8c822877da31b14177cbec1435a097ca0 (patch) | |
tree | 93827262df208bf600f83e461f25dc0224ce6d85 | |
parent | 925bf01bf57e6ab5738f53815d071245acc77b2f (diff) | |
download | poezio-be7542b8c822877da31b14177cbec1435a097ca0.tar.gz poezio-be7542b8c822877da31b14177cbec1435a097ca0.tar.bz2 poezio-be7542b8c822877da31b14177cbec1435a097ca0.tar.xz poezio-be7542b8c822877da31b14177cbec1435a097ca0.zip |
Add explicit color flag for reverse video mode
Reverse video mode is useful when using the CCG/XEP-0392 palette.
Since we don’t know the true background color and the CCG palette
is (presumably) made for a specific background color (range), it
can currently only be used as foreground colour against a `-1`
background. Reverse video mode also allows it to be used as
background colour (with the normal background colour as foreground
colour).
-rwxr-xr-x | poezio/theming.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/poezio/theming.py b/poezio/theming.py index e5095507..f0309f65 100755 --- a/poezio/theming.py +++ b/poezio/theming.py @@ -487,6 +487,8 @@ def to_curses_attr( curses, 'A_ITALIC') else curses.A_REVERSE) if 'a' in additional_val: curses_pair = curses_pair | curses.A_BLINK + if 'r' in additional_val: + curses_pair = curses_pair | curses.A_REVERSE return curses_pair |