getting up arrow in terminal to scroll thought history of python commands

Sean DiZazzo half.italian at gmail.com
Sun Jun 13 20:16:37 EDT 2010


On Jun 13, 4:39 pm, Vincent Davis <vinc... at vincentdavis.net> wrote:
> On Sun, Jun 13, 2010 at 5:28 PM, Gerry Reno <gr... at verizon.net> wrote:
> > sounds like your keymapping got messed with.
>
> > you could just:
> > set -o vi
> > python
> > ESC, Ctrl-j
> > and now ESC-k and ESC-j will take you back and forth in history (std vi
> > editing)
>
> This is done within python? Let make sure I am clear. This is only an
> issue within the interactive python for the python dist I have built
> from source not other pythons or terminal in general. I look into the
> commands you suggested more but ESC-k and ESC-j don't sound very
> appealing to me.
>
> Thanks
> Vincent
>
>
>
> > -Gerry
>
> > Jun 13, 2010 07:22:40 PM, vinc... at vincentdavis.net wrote:
>
> > I just installed 2.6 and 3.1 from current maintenance source on Mac
> > OSx. When I am running as an interactive terminal session the up arrow
> > does not scroll thought the history of the py commands I have entered
> > I just get ^[[A. When I install from a compiled source it works fine.
> > Whats the fix for this?
>
> > Thanks
> > Vincent
> > --
> >http://mail.python.org/mailman/listinfo/python-list
>
>

There used to be a problem with readline support in Mac.  Not sure if
the problem still exists in Leopard/Snow Leopard.

Google for "python mac readline" and you will find some stuff.



More information about the Python-list mailing list