ansi color patch from david shilvock

This commit is contained in:
Jorgen Stenarson
2008-12-17 19:27:56 +01:00
parent be190330f9
commit f98c8b4f55
+1 -1
View File
@@ -98,7 +98,7 @@ class AnsiWriter(object):
elif len(part) == 2 and "30" <= part <= "37": # set foreground color
attr.color = trtable[int(part)-30]
elif len(part) == 2 and "40" <= part <= "47": # set background color
attr.color = trtable[int(part)-40]
attr.backgroundcolor = trtable[int(part)-40]
continue
n += len(chunk)
if True: