Issue with arrows when running python in terminal window

Discussion in 'Mac Apps and Mac App Store' started by EricBrian, Dec 11, 2010.

  1. EricBrian macrumors 6502a

    EricBrian

    Joined:
    Jul 30, 2005
    #1
    When I press the up or down arrows, I get this in the terminal:

    Up arrow: ^[[D
    Down arrow: ^[[C

    Anybody know what to do so that I can use those keys to scroll in history?


    Thanks! :)
    Eric
     
  2. LPZ, Dec 12, 2010
    Last edited: Dec 12, 2010

    LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #2
    Do control-P and control-N do what you want within an interactive Python session?

    Open Terminal and type the word read. Press the return key, and then press the following keys in order: UpArrow, DownArrow, RightArrow, LeftArrow. Then press return and post the result. I get

    Code:
    read
    ^[[A^[[B^[[C^[[D
     

Share This Page