mirror of
https://github.com/wassname/pyreadline.git
synced 2026-10-02 12:40:27 +08:00
ansi color patch from david shilvock
This commit is contained in:
1 parent
be190330f9
commit
f98c8b4f55
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user