eudicots / Cactus

Static site generator for designers. Uses Python and Django templates.
BSD 3-Clause "New" or "Revised" License
3.47k stars 313 forks source link

Output of color codes in Windows results in just control codes #148

Closed gregersn closed 9 years ago

gregersn commented 9 years ago

Since Windows doesn't support the color codes used by ColorLogger directly, the output contains a lot of garbage.

However, as suggested by the python-colorlog github page:

On Windows, requires colorama to work properly. A dependancy on colorama is included as an optional package dependancy - depending on colorlog[windows] instead of colorlog will ensure it is included when installing.

also, by adding

 import colorama

and

colorama.init() at the start of main() in cli.py output is much more sane.

krallin commented 9 years ago

Can you try this branch:

https://github.com/koenbok/Cactus/compare/add-colorama?expand=1

Thanks!

gregersn commented 9 years ago

Tested, and it works!

krallin commented 9 years ago

Excellent; thanks!