Can module tell if running from interpreter vs Windows command line ?

pdlemper at pdlemper at
Wed Jul 15 20:07:18 EDT 2009

The WConio console module produces different colors, sometimes quite
different, when run from Windows command line vs from Python
interpreter >>> .  A good foregnd/backgnd combination under one
may be unreadable under the other  : (
I'm using Python 3.0 with the corresponding WConio on XP.
Is there any way for the module to detect under which it has been 
started ?    Thanks

More information about the Python-list mailing list