capturing arrow keys and tab

Joe Connellan joe at rsp.com.au
Wed Mar 26 01:52:38 EST 2003


I'm trying to capture the arrow and tab keys when doing a simple 
interactive console application. I've looked at the 
code.interativeConsole code but couldn't find where it's capturing the 
arrow keys (for browsing through the history), eg pressing the up key 
will look at the previously entered command (in linux) instead of typing
"^[[A"

Does anyone know how to do this?

Thanks





More information about the Python-list mailing list