Juntalis/ansicon — comment on commit 8cab91e4cd5a7a85a24635db726826dbfb7d6f81
File:  line 0
By Juntalis:

Wrote a simple python c-extension wrapping it to allow one to simply do:

import ansicon

To trigger functionality. Unfortunately, even though it's hooking correctly, it just makes the text look normal. Gotta figure out why.

def ansicon(quiet=False):
import ctypes
handle = ctypes.windll.kernel32.LoadLibraryW(u'ANSI32.dll')
if not handle and not quiet:
print 'Failed to load ANSI-compatibility layer.'

This works, however.