Windows Console Colors

Bill Walker kwalker at earth1.net
Sun Jan 12 07:35:09 EST 2003


Thanks for all the answers to my post. Attached is one of the best
solutions -- so neat that I thought I would share it. Put this little bit of
code at the start of your script and the windows dos console will be yellow
on blue
instead of the terribly boring white on black.

# code to change colors of the windows dos console
import os
print r" Ansi codes for yellow on blue"
os.system('cls')

# test
os.system('dir /p')
for ever in range(1000000):
    pass





-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----




More information about the Python-list mailing list