FIX bug in bold colors

This commit is contained in:
Fabien Benureau 2013-06-27 11:00:28 +02:00
parent d30d5f32c4
commit 8290eeaa9b

View File

@ -24,7 +24,7 @@ filepath = cyan
def dye(s, color=end, bold=False):
assert color[0] == '\033'
if bold:
s = '\033[1' + s[3:]
color = '\033[1' + color[3:]
return color + s + end
_dye = dye