[Tutor] Print to std output with color
Karim
karim.liateni at free.fr
Wed Jan 26 18:10:35 CET 2011
Hello all,
Is there a simple way to print with color to stdout like the unix/linux
example below:
*print( '^[[1;31mThis is a warning!^[[0m' )
where <Ctrl-V><esc> <=> ^[
*I see thing with curses module. But is there an more simple object in
other module to do the trick?
Kind of _/decorate_output( mode=WARNING, *'This is a warning!')*/_
Regards
Karim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110126/f7f223db/attachment.html>
More information about the Tutor
mailing list