[Tutor] Changing colors using WinXP py2.6.2

Katt the_only_katala at verizon.net
Tue Oct 13 21:55:58 CEST 2009


> Message: 3
> Date: Tue, 13 Oct 2009 11:34:15 +0100
> From: Tim Golden <mail at timgolden.me.uk>
> Cc: tutor at python.org
> Subject: Re: [Tutor] Changing text colors on WinXP py2.6.2
> Message-ID: <4AD457A7.5030301 at timgolden.me.uk>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Katt wrote:
>> 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 [1]
> of the pywin32 package [2] or Fredrik Lundh's console [3]
> module or Chris Gonnerman's wconio [4].
>
> TJG
>
> [1] http://timgolden.me.uk/pywin32-docs/win32console.html
> [2] http://sourceforge.net/projects/pywin32/
> [3] http://effbot.org/zone/console-index.htm
> [4] http://newcenturycomputers.net/projects/wconio.html
>
>

Thanks Tim G. and Alan G.
I will check these four options out.  Hopefully they won't be to difficult 
to incorporate into my beginner level programming :)

Thanks to all for your help.  It definitely makes a difference having this 
great support.

Katt 



More information about the Tutor mailing list