Prev: Python on Android Mobile?
Next: wow !!
From: Vincent Davis on 13 Jun 2010 19:19 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
From: Vincent Davis on 13 Jun 2010 19:39 On Sun, Jun 13, 2010 at 5:28 PM, Gerry Reno <greno(a)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, vincent(a)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 >
From: Sean DiZazzo on 13 Jun 2010 20:16 On Jun 13, 4:39 pm, Vincent Davis <vinc...(a)vincentdavis.net> wrote: > On Sun, Jun 13, 2010 at 5:28 PM, Gerry Reno <gr...(a)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...(a)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.
From: Irmen de Jong on 13 Jun 2010 20:24 On 14-6-2010 1:19, Vincent Davis 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 I'm guessing you don't have the readline module. Compile and install GNU Readline, then type 'make' again in your Python source tree. It should now no longer report a missing 'readline' module. -irmen
From: Vincent Davis on 14 Jun 2010 08:37
On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong <irmen-NOSPAM-(a)xs4all.nl> wrote: > On 14-6-2010 1:19, Vincent Davis 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 > > I'm guessing you don't have the readline module. > > Compile and install GNU Readline, then type 'make' again in your Python > source tree. It should now no longer report a missing 'readline' module. What exactly do you mean by "'make' again in your Python source tree." Thanks Vincent > > -irmen > -- > http://mail.python.org/mailman/listinfo/python-list > |