Better would be this:

c = get_config()


try:
    import curses
    curses.initscr()
except:
    pass
else:
    try:
        if not curses.has_colors():
            c.InteractiveShell.colors = "NoColor"
    finally:
        curses.endwin()


This could also go into the regular Sage ipython startup script -- it's 
only effective if the terminal does not support colors.

Bill

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to