kennethreitz / crayons

Text UI colors for Python.
https://pypi.python.org/pypi/crayons
MIT License
424 stars 30 forks source link

Add support for Windows #12

Closed jasonpierrepont closed 5 years ago

jasonpierrepont commented 7 years ago

I was using this on a Mac, and thought it was pretty great. Tried it on Windows earlier today and was pretty disappointed that it wasn't working, so I used colorama instead.

It looks like adding just this one line will let people use this on Windows. I didn't do any super comprehensive testing, but I printed a red string, a black string and a normal string on Windows 7 in a command prompt window and in a powershell window, and it worked as expected.