Changing TEXT color from python

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Apr 4 18:19:09 EDT 2005


In <mailman.1316.1112645526.1799.python-list at python.org>, Heiko Wundram
wrote:

> Am Montag, 4. April 2005 21:59 schrieb GujuBoy:
>> how can i do this...and hopefully without including any external
>> modules.
> 
> It depends.
> 
> Under *NIX, have a look at the curses module.
> 
> Under Windows, Google for ANSI.SYS and read up on Escape Sequences, or check 
> out the curses for Windows implementation that's floating around somewhere on 
> the net, I don't know the URL.

At least under Linux the ANSI color escapes should work too.  Out of the
box.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list