Priting Out in COLOURS
godoy at ieee.org
Wed Jun 9 22:31:54 CEST 2004
On Qua 09 Jun 2004 15:09, Satish Chimakurthi wrote:
> Hi All,
> This must be a simple thing to do, but am not sure about it. I like to
> know how I can print my statements out, in colour.
> Example: print 'PYTHON IS VERSATILE'
> By default, this statement prints out in BLACK. What if I need to change
> it's colour ??
Here it prints out in white, but this is how the terminal comes configured
To use colors you can try printing ANSI codes to an ANSI enabled terminal or
use some module that will do the hardwork for you. NCurses come to my
Godoy. <godoy at ieee.org>
More information about the Python-list