[Tutor] Print to std output with color
Alan Gauld
alan.gauld at btinternet.com
Wed Jan 26 19:27:56 CET 2011
"Karim" <karim.liateni at free.fr> wrote
> Is there a simple way to print with color to stdout like the
> unix/linux
> example below:
>
> *print( '^[[1;31mThis is a warning!^[[0m' )
I should have said the effbot solution (and WConio) are only for
Windows. On Linux I think you are pretty well stuck with curses.
I did find a simplified curses library here:
http://nadiana.com/python-curses-terminal-controller
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list