Hi John,

On Fri, Aug 7, 2009 at 4:40 AM, John H Palmieri<[email protected]> wrote:
>
> I have a problem with Sage and maybe readline on an ubuntu box.  If I
> type
>
>  sage: squ<TAB>
>
> 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_d<TAB>", 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to