From d479ea3a3c4ff708483b36b6beb557440bbe125e Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Tue, 21 Feb 2012 19:11:14 +0000 Subject: [PATCH] Initialise colorama for textui on Windows. Closes gh-39 --- clint/textui/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clint/textui/__init__.py b/clint/textui/__init__.py index 3b8c92a..c16fff9 100644 --- a/clint/textui/__init__.py +++ b/clint/textui/__init__.py @@ -7,7 +7,10 @@ clint.textui This module provides the text output helper system. """ - +import sys +if sys.platform.startswith('win'): + from ..packages import colorama + colorama.init() from . import colored from . import progress