[sage-support] Re: readline? problem

2009-08-07 Thread Lars Fischer

Hello John,

if a recompilation does not work (or take too long), you could try to
disable colors:
set
colors NoColor
instead of  colors Linux
in
~/.sage/ipython/ipythonrc

Whenever I encountered this completion bug, disabling of colors made
it go away. Most of the time, the bug came with a precompiled binary
and vanished with a self-compiled version.


For the records: I am using Ubuntu. A libreadline-dev was probably
always present, because I was compiling pari/gp.

Lars

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



[sage-support] Re: readline? problem

2009-08-06 Thread John H Palmieri

On Aug 6, 11:40 am, John H Palmieri jhpalmier...@gmail.com wrote:
 I have a problem with Sage and maybe readline on an ubuntu box.  If I
 type

   sage: squTAB

 then it partially completes to

   sage: squarefree_

 Then it lists the options (squarefree_divisors  squarefree_part) and
 puts the cursor in the wrong place: the cursor ends up on the s in
 squarefree_.  If I then type d then TAB, it completes divisors
 and leaves the cursor at the end of that word.  This seems to only
 happen when there are several possible completions: if I type
 squarefree_dTAB, it completes and leaves the cursor in the right
 place.

By the way, I should say: this is not a new problem.  I've been seeing
this for several versions of Sage -- I forget when it first started.

  John

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



[sage-support] Re: readline? problem

2009-08-06 Thread Minh Nguyen

Hi John,

On Fri, Aug 7, 2009 at 4:40 AM, John H Palmierijhpalmier...@gmail.com wrote:

 I have a problem with Sage and maybe readline on an ubuntu box.  If I
 type

  sage: squTAB

 then it partially completes to

  sage: squarefree_

 Then it lists the options (squarefree_divisors  squarefree_part) and
 puts the cursor in the wrong place: the cursor ends up on the s in
 squarefree_.  If I then type d then TAB, it completes divisors
 and leaves the cursor at the end of that word.  This seems to only
 happen when there are several possible completions: if I type
 squarefree_dTAB, it completes and leaves the cursor in the right
 place.

 Has anyone seen this before?  Is some terminal setting messed up?  The
 same thing happens whether I run xterm or the default gnome-terminal.
 On the other hand, if I remote log in to the machine, then I don't see
 this: the cursor ends up where it is supposed to when I TAB complete
 things.  (For example, I'm sitting at this ubuntu box right now.  I
 can ssh to another machine, and then from there ssh back to this one,
 and I don't see the tab problem.  This doesn't seem like the ideal
 solution, however.)

I have experienced a similar problem before on an Ubuntu box. Sage is
bundled with readline 5.x so I thought that it couldn't be a problem
with readline. However, there is a distinction between the readline
library and the development library of readline, which is something
like readline5-dev. So I used synaptic to also install the development
library of readline 5.x. Then I compiled Sage again. The newly
compiled Sage then doesn't have such problems any more.

Just my 2-cent.

-- 
Regards
Minh Van Nguyen

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



[sage-support] Re: readline? problem

2009-08-06 Thread John H Palmieri

On Aug 6, 4:08 pm, Minh Nguyen nguyenmi...@gmail.com wrote:
 Hi John,





 On Fri, Aug 7, 2009 at 4:40 AM, John H Palmierijhpalmier...@gmail.com wrote:

  I have a problem with Sage and maybe readline on an ubuntu box.  If I
  type

   sage: squTAB

  then it partially completes to

   sage: squarefree_

[snip]

 I have experienced a similar problem before on an Ubuntu box. Sage is
 bundled with readline 5.x so I thought that it couldn't be a problem
 with readline. However, there is a distinction between the readline
 library and the development library of readline, which is something
 like readline5-dev. So I used synaptic to also install the development
 library of readline 5.x. Then I compiled Sage again. The newly
 compiled Sage then doesn't have such problems any more.

Thanks, I'll try that.  (I found something like libreadline5-dev and
installed it.)

  John

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