Fix crash on startup when terminal doesnt support colors

This commit is contained in:
Michael Lazar
2017-11-04 14:10:50 -04:00
parent 331492c766
commit 00df45bd34
3 changed files with 15 additions and 4 deletions

View File

@@ -849,7 +849,7 @@ class Terminal(object):
"""
monochrome = (not curses.has_colors())
if theme is None:
if theme is None or monochrome:
theme = Theme(monochrome=monochrome)
theme.bind_curses()