diff options
author | mathieui <mathieui@mathieui.net> | 2020-05-24 22:38:11 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2020-05-24 22:38:11 +0200 |
commit | 66cd8e54b05aab10bc8eafae77fdbb4e30fed45b (patch) | |
tree | e688bfcf0f5701a5d27e017c22cdfd9334d58c5d /poezio/theming.py | |
parent | d3e237811c98423683b711742450ded747ecfe3f (diff) | |
download | poezio-66cd8e54b05aab10bc8eafae77fdbb4e30fed45b.tar.gz poezio-66cd8e54b05aab10bc8eafae77fdbb4e30fed45b.tar.bz2 poezio-66cd8e54b05aab10bc8eafae77fdbb4e30fed45b.tar.xz poezio-66cd8e54b05aab10bc8eafae77fdbb4e30fed45b.zip |
Do not degrade colors for terminals supporting more than 256
Diffstat (limited to 'poezio/theming.py')
-rwxr-xr-x | poezio/theming.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/theming.py b/poezio/theming.py index fc34ae39..6f1d8226 100755 --- a/poezio/theming.py +++ b/poezio/theming.py @@ -448,7 +448,7 @@ def to_curses_attr( colors = color_tuple bold = False - if curses.COLORS != 256: + if curses.COLORS < 256: # We are not in a term supporting 256 colors, so we convert # colors to numbers between -1 and 8 colors = (color_256_to_16(colors[0]), color_256_to_16(colors[1])) |