colorama : Simple cross-platform colored terminal text.

Tartley tartley at
Tue Apr 20 02:28:06 CEST 2010

ANSI escape character sequences are commonly used to produce colored
terminal text on Macs and Unix. Colorama makes these work on Windows

It works by wrapping stdout and stderr on Windows, with proxies that
filter ANSI escape sequences out of printed text, and converting them
into equivalent win32 calls.

This has the happy side-effect that existing applications or libraries
which already use ANSI sequences to produce colored output on Linux or
Macs (eg. using packages like 'termcolor') will also work on Windows,
simply by calling Colorama.init().

I realise an alternative way to achieve the same result is to install
the ANSI.SYS device driver, but it is fiddly and intrusive for the
Python developer to do this on their machine of their application's

This is the first release, and while it seems to work for me, no doubt
there are still many problems with it. Ruthless feedback is very
welcome, about both implementation and philosophy.

More information about the Python-announce-list mailing list