Fixed bold issue

Bold would get "stuck" on in powershell/cmd prompt.
This commit is contained in:
infamy
2014-03-19 22:19:51 -07:00
parent 13df32316f
commit 8a2aed6c32
+1 -1
View File
@@ -65,7 +65,7 @@ class ColoredString(object):
@property
def color_str(self):
style = 'BRIGHT' if self.bold else 'NORMAL'
c = '%s%s%s%s' % (getattr(colorama.Fore, self.color), getattr(colorama.Style, style), self.s, colorama.Fore.RESET)
c = '%s%s%s%s%s' % (getattr(colorama.Fore, self.color), getattr(colorama.Style, style), self.s, colorama.Fore.RESET, getattr(colorama.Style, 'NORMAL'))
if self.always_color:
return c