Still better is this, in 
~/.sage/ipython-0.12/profile_sage/ipython_config.py:

o = get_config()


try:
    import curses
    curses.initscr()
except:
    print "can't initscr with curses"
    pass
else:
    try:
        if not curses.has_colors():
            o.SageInteractiveShell.colors = "NoColor"
    finally:
        curses.endwin()



On Wednesday, September 25, 2013 7:52:54 AM UTC-7, Bill Janssen wrote:
>
> 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 sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
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