How to change colors of console window?
Frank
Frank at frank.org
Tue Jan 28 01:30:48 EST 2003
Here's how I've done it since the early days of DOS:
Load ansi.sys in the config.sys (create the file if needed)
devicehigh=c:\windows\command\ansi.sys
and put this in your autoexec.bat
PROMPT $e[0;1;33;44m$p$g
This will give you yellow text on deep blue background.
The $p$g produces the "current directory>" part; look up ansi.sys to
get the numbers for other colors besides the 33 and 44
Frank
More information about the Python-list
mailing list