[Tutor] Need to be able to accept Page Down or CTRL-E

Dave Wilder D.Wilder at F5.com
Fri Feb 1 03:43:54 CET 2013


In a script I am writing, I would like to be able to accept the PAGE DOWN key as an input  as well as the arrow keys.

Is that possible w/ Python (I am using python 2.7.3 and Linux OS)?  If so, could someone point me to documentation on how to do that?

I have done things like this before in python.  For example, I used the following to send the <ESC> character.
send (chr(27)) 

However, I have not been able to find the ascii code equivalent to use for PAGE DOWN and the up/down arrow keys.

I'm not even sure this is even a python question.



More information about the Tutor mailing list