command prompt text color

jason petrone jp at NOSPAMdemonseed.net
Mon Nov 13 10:34:40 EST 2000


dsavitsk at e-coli.net wrote:
> This is a windows question ...
> Is there a way to control the color of text sent to the dos window from
> python programs? I seem to remember dos programs with different text
> colors.

The best way I know of is using ansi screen commands.

You can find a module to do this with at:
http://www.demonseed.net/~jp/code/ansi.py

There is also another one(that I didn't write), but I can't locate it since
parnassus is down.

-jason





More information about the Python-list mailing list