I've just discovered ipython - An Enhanced Interactive Python, which
among other things colorizes output including error codes
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 15, 5:44 pm, yhvh <[EMAIL PROTECTED]> wrote:
> Is it possible to output error messages in a different color?
> I'm using Terminal on Gnome.
For the few times that I want to do this, this simple form works with
xterm.
for j in range(1,10):
os.system("tput setaf "+str(j))
print "test fo
On 2008-01-16, yhvh <[EMAIL PROTECTED]> wrote:
> Is it possible to output error messages in a different color?
> I'm using Terminal on Gnome.
>>> print "\033[1;31mHello\033[0m There!"
Some reading:
http://en.wikipedia.org/wiki/ANSI_escape_code
http://www.ioncannon.net/ruby/101/fun-with-ansi-escap
Is it possible to output error messages in a different color?
I'm using Terminal on Gnome.
--
http://mail.python.org/mailman/listinfo/python-list