Coloring print lines
Fernando Perez
fperez528 at yahoo.com
Mon Aug 25 23:53:07 EDT 2003
Sami Viitanen wrote:
> Hello,
>
> Is there an easy way to make script print text with differents colors to
> screen (shell)?
>
> I mean a script that can for example print lines in red if some error occurs
> in executing
> some information..
IPython (http://ipython.scipy.org) supports coloring for its own purposes, and
comes with a module for this. You can simply import this module and use it for
your programs. Besides, you may like ipython itself ;)
Cheers,
f.
More information about the Python-list
mailing list