Tuesday, November 4, 2008

How to tell if the current output is a terminal

sys.stdout.isatty()

No comments: