Win32 console does not support ANSI escape sequences

Issue #836 resolved
Paul Moore
created an issue

The terminal formatter uses ANSI escape sequences for colour. These do not work in the Win32 console.

This can be addressed by using the "colorama" package from PyPI - either by bundling or as an optional dependency.

All that is needed is

if sys.platform.startswith('win'): try: from colorama import init() init() except ImportError: pass

at the start of formatters/

I'll put together a pull request for this, if there is interest.

Comments (1)

  1. Log in to comment