error/warning color customization in interactive console?

Y

yhvh

Is it possible to output error messages in a different color?
I'm using Terminal on Gnome.
 
Z

Zentrader

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 for ", j
 
Y

yhvh

I've just discovered ipython - An Enhanced Interactive Python, which
among other things colorizes output including error codes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top