arrow keys don't work
Terry Reedy
tjreedy at udel.edu
Mon Jan 22 22:32:35 EST 2007
"tac-tics" <tactics40 at gmail.com> wrote in message
news:1169511711.594390.167630 at 11g2000cwr.googlegroups.com...
|> Have you changed your terminal (either the program itself or its config)
| udlr yields ^[[A^[[B^[[C^[[D in the interactive python interpreter, but
| like I said, works like it should outside the Python interpreter.
If I remember correctly, '^[' represents the escape character and '^[[A',
etc represent the standard ANSI terminal escape sequences for the up, etc,
key. So you are missing the interpretive layer that should intercept and
act on those sequences and Python is getting them raw (literally).
tjr
More information about the Python-list
mailing list