[Tutor] Print to std output with color

Karim karim.liateni at free.fr
Wed Jan 26 20:48:36 CET 2011


That's what I figured out at effbot website.
Thanks for the additional link Alan!

Regards
Karim

On 01/26/2011 07:27 PM, Alan Gauld wrote:
>
> "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,
>



More information about the Tutor mailing list