Windows + cmd.exe + Python + colored output

It’s not a make-or-break thing, but sometimes you want to make console output more readable.

http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python?rq=1

https://code.google.com/p/colorconsole/source/browse/colorconsole/win.py

And sometimes you want to know if you’re connected to a terminal or are redirecting to a file.

http://stackoverflow.com/questions/1077113/how-do-i-detect-whether-sys-stdout-is-attached-to-terminal-or-not

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>