Colored text

pyscottishguy at hotmail.com pyscottishguy at hotmail.com
Mon Aug 13 14:02:23 EDT 2007


On Aug 13, 10:37 am, Neil Cerutti <horp... at yahoo.com> wrote:
> On 2007-08-13, Michael Bentley <mich... at jedimindworks.com> wrote:
>
>
>
> > On Aug 12, 2007, at 7:05 PM, Rohan wrote:
> >> Can some one tell me how do I get colored text. Say when I want to
> >> write something in a text file , how do I get it colored.
>
> > You can use ANSI escape codes --http://en.wikipedia.org/wiki/
> > ANSI_escape_code:
>
> Unfortunately, most versions of Windows of the last 7 years
> (2000, XP, probably Vista) don't support ANSI escape codes well
> enough to work with Python.
>
> --
> Neil Cerutti
> We have to play hard for the full 40 minutes. 48? Oh, that's right. --Mikki
> Moore

Check out these recipes:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/475116
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496901




More information about the Python-list mailing list