[Tutor] About ansi color

Chad Crabtree flaxeater at yahoo.com
Thu Sep 16 20:03:04 CEST 2004


Kevin wrote:

> I was playing around with ansi color in python. What I did to get 
> color was this: fRed = chr(27) + '[31m' so that when I type print 
> fRed+'Hello World' would print in red. The only thing is that the 
> color shows up no problem on linux but but I get a wierd thing
showing 
> up an windows. How would I go about making it work on windows?
>  
> Thanks
> Kevin
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Tutor maillist  -  Tutor at python.org
>http://mail.python.org/mailman/listinfo/tutor
>  
>
You need an ansi driver for things to work right on windows.   This 
article might be helpful for you.

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q101875

Good Day


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


More information about the Tutor mailing list