[Tutor] Changing text colors on WinXP py2.6.2

Katt the_only_katala at verizon.net
Tue Oct 13 10:43:43 CEST 2009

Hello All,

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.

I have tried placing the following before and aft the variable I wish to 

print "\x1B[31;46m",variable,"[0m"
print "\033[31;46m",variable,"[0m"

In both cases no change has happened. 

More information about the Tutor mailing list