Windows Console Colors
Peter Hansen
peter at engcorp.com
Sun Jan 12 09:55:27 EST 2003
Bill Walker wrote:
>
> 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"[12C[44;33;1m Ansi codes for yellow on blue"
...provided, I believe, you have installed ANSI.SYS in your
CONFIG.SYS file, which is not the default.
-Peter
More information about the Python-list
mailing list