linux-python arrow-key problem when in interactive interpreter

Discussion in 'Python' started by Gabriel Cooper, Apr 27, 2004.

  1. I'm running redhat 9 with python 2.3.3 and when I'm in gnome-terminal
    and inside the python interpreter I can't use the arrow keys anymore.
    They simply show ^[[A, ^[[B, etc.

    It doesn't appear to be gnome-terminal's settings as XTerm has the same
    problem. If just at the command prompt they work fine, I'm able to hit
    up/down/left/right and see previous/next shell commands or move around
    to fix typos on the current line... however once I enter the python
    interpreter it stops working.

    I have found no options in gnome-terminal for switching anything I would
    recognize as useful, such as to "VT100" or anything like that. The only
    remotely similar setting was a character encoding of UTF-8 (unicode) and
    that didn't seem applicable so I left it alone.

    Technically this is probably a linux question not a python question but
    since it only (to my knowledge) happens in the python interpreter I
    thought you guys might know what I've done wrong.

    Gabriel.
    Gabriel Cooper, Apr 27, 2004
    #1
    1. Advertising

  2. vincent wehren, Apr 27, 2004
    #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. Erik Johnson
    Replies:
    8
    Views:
    680
    Peter Otten
    Feb 3, 2005
  2. Simon Eves
    Replies:
    0
    Views:
    335
    Simon Eves
    Dec 16, 2006
  3. ThomasC
    Replies:
    6
    Views:
    351
  4. R. Bernstein
    Replies:
    4
    Views:
    719
    R. Bernstein
    May 15, 2008
  5. Eric Frederich

    embedding interactive python interpreter

    Eric Frederich, Mar 25, 2011, in forum: Python
    Replies:
    2
    Views:
    415
    Mark Hammond
    Mar 29, 2011
Loading...

Share This Page