[IPython-user] OS X Terminal iPython history display bug
Sun Nov 30 23:26:36 CST 2008
This issue still irritates me frequently.
To try to summarize the problem in an understandable manner, if I type
In : one two three four five six sevel eight
and then press control-A to jump to the beginning of the line, the
curser jumps up to the end of the previous line. If I then press
control-F repeatedly to move forward through the text, the text I
wrote overwrites the above (basically everything is transposed
backwards that many characters (8-10ish) as such:
partway through, with the curser at the end of two:
ne two]: one two three four five six sevel eight
all the way through:
ne two three four five six seven eighseven eight
at which point it even wraps again ending in this:
one two three four five
six sevel eig
ht two three four five six sevel eighsevel eight
With no In[#] prompt whatsoever.
This also occurs when using the history to pull back a long enough
line, e.g. (Using the previous line):
ht : one two three four five six sevel eig
Is there some place where I could file a bug about it?
Or does anybody have an idea of where I should start looking if I
wanted to try and fix it myself?
(I don't have a whole lot of experience in stuff of this nature, but I
expect if nothing else I'd learn something from trying.)
On Oct 22, 2008, at 12:38 PM, Lawrence Johnston wrote:
> This is only in IPython. Neither bash nor python exhibits this
> behavior (I just checked). `echo $COLUMNS` returns 80, which is the
> proper size.
> With a bit of further research, it seems to be related to the
> difference in length between the IPython prompt (e.g. "In : ")
> and my terminal prompt, which is the default
> "My-very-long-indeed-computer-name:~/MyCurrentDirectory $"
> Basically, I've found that I don't have to even wrap the line in
> IPython, I only have to write a line of a length that would wrap if
> I had been using the really long terminal prompt before the weird
> behavior starts exhibiting itself (e.g. if my prompt is 20 chars and
> my window is 80, I only have to write a line of 61+ characters in
> length before weird stuff starts happening.
> Maybe I need to post some pictures, it's difficult to describe.
> Is there a place where I should be filing this as a bug?
> On Oct 22, 2008, at 6:36 AM, Jeff Kaufman wrote:
>> On Tue, Oct 21, 2008 at 01:09:50PM -0700, Lawrence Johnston wrote:
>>> Using IPython 0.9.1 on OS X 10.5.5, The history access of any
>>> which wraps beyond a single screen seems to be messed up.
>> Is this only in ipython? When this has happend to me in ipython it's
>> turned out to be a terminal problem that affects other terminally
>> stuff too. And for me the root was that somehow a resize didn't
>> update the COLUMNS evnvironment variable. If
>> echo $COLUMNS
>> gives the wrong number, I've fixed it by resizing it away from
>> where I
>> want and back again.
>> IPython-user mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-user