using arrow keys in the python shell on Mac OS X

Discussion in 'Python' started by Vidar Gundersen, Jan 20, 2006.

  1. both Python 2.3.5 shipped with OS X 10.4 and
    2.4.2 outputs junk characters instead of allowing
    history recall when i hit the up/down arrows.
    any solutions to this?
     
    Vidar Gundersen, Jan 20, 2006
    #1
    1. Advertising

  2. Vidar Gundersen

    Guest

    You need libreadline to make it work. For some stupid reason OSX
    doesnt come with it installed.

    just get the gzipped one from here:
    http://www.pycs.net/bbum/2004/1/21/readline.so.gz

    then gunzip it and put the readline.so into
    /Library/Python/2.3/site-packages/

    then fire up python again and it should work.
     
    , Jan 20, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rob R. Ainscough
    Replies:
    0
    Views:
    716
    Rob R. Ainscough
    Jul 20, 2005
  2. jitrowia
    Replies:
    2
    Views:
    384
    Dennis Lee Bieber
    Jan 26, 2008
  3. Rahul
    Replies:
    4
    Views:
    628
    Rahul
    Apr 30, 2008
  4. Replies:
    5
    Views:
    152
  5. sylver
    Replies:
    4
    Views:
    193
    sylver
    Aug 2, 2007
Loading...

Share This Page