[Tutor] About ansi color

Kevin python_newbie at vedorian.com
Thu Sep 16 15:52:07 CEST 2004


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20040916/c46a5e2a/attachment.htm


More information about the Tutor mailing list