Fix issues with terminal renderer

This commit is contained in:
Kim Silkebækken 2012-11-14 20:49:04 +01:00
parent 94cd934268
commit 89375b5c6a
1 changed files with 2 additions and 2 deletions

View File

@ -17,13 +17,13 @@ class TerminalSegmentRenderer(SegmentRenderer):
ansi = []
if fg is not None:
if fg is False:
if fg[0] is False:
ansi += [39]
else:
ansi += [38, 5, fg[0]]
if bg is not None:
if bg is False:
if bg[0] is False:
ansi += [49]
else:
ansi += [48, 5, bg[0]]