Message: 3
Date: Tue, 13 Oct 2009 11:34:15 +0100
From: Tim Golden <m...@timgolden.me.uk>
Cc: tutor@python.org
Subject: Re: [Tutor] Changing text colors on WinXP py2.6.2
Message-ID: <4ad457a7.5030...@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
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to