On 20-Mar-09, at 1:07 AM, Florent Hivert wrote:

>
>      Dear All,
>
>> Have you tried editing
>>
>> $HOME/.sage/ipython/ipythonrc
>>
>> ?  It has numerous color options, which are off by default since it  
>> is
>> not possible to tell if the user's terminal has a white or black
>> background, and any choice of colors looks like crap if you guess
>> wrong about the background color.
>
> This coloring feature is very cool. I activated it right after  
> reading your
> e-mail... Until I launch emacs... Then I realize that emacs will not  
> recognize
> anything - and in particular the prompt - anymore. Is it possible to
> deactivate to feature dynamically from sage itself, for example when  
> we issue
> the import sage_emacs as emacs ?

I have partway done this in my tree, ie it will wait for a prompt,  
detect colors, and issue a %colors NoColor command.  Whenever I post a  
new spkg it will be there, but it's not a priority.

But in general this is not the way to go: parsing ANSI and associated  
color commands in emacs is supported but slow, according to a few  
blogs I have read.  Why not customize font-lock-mode declarations for  
inferior-sage-mode?  Much better.

Nick

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to