[Tutor] Changing text colors on WinXP py2.6.2
mail at timgolden.me.uk
Tue Oct 13 12:34:15 CEST 2009
> Is it possible to change text color on a WinXP system by just using the Ansi
> escape codes. I have tried, but it just shows the start and end text of the
> code, but it doesn't change the color.
No. ANSI escapes don't work on Windows. Depending on where
you want to go, you can look at the win32console module 
of the pywin32 package  or Fredrik Lundh's console 
module or Chris Gonnerman's wconio .
More information about the Tutor