From a07602fdeb55d8aa3825df834c5b0afee46be9b2 Mon Sep 17 00:00:00 2001 From: Greg Haskins Date: Wed, 15 Jun 2011 12:24:52 -0400 Subject: [PATCH] call colorama.init(..) at import time to ensure stdout/stderr get wrapped --- clint/textui/colored.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clint/textui/colored.py b/clint/textui/colored.py index 291b19a..e7c0754 100644 --- a/clint/textui/colored.py +++ b/clint/textui/colored.py @@ -27,6 +27,8 @@ DISABLE_COLOR = False if not sys.stdout.isatty(): DISABLE_COLOR = True +else: + colorama.init(autoreset=True) class ColoredString(object):