Do not degrade colors for terminals supporting more than 256
This commit is contained in:
parent
d3e237811c
commit
66cd8e54b0
1 changed files with 1 additions and 1 deletions
|
@ -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]))
|
||||
|
|
Loading…
Reference in a new issue