[Tutor] Need to be able to accept Page Down or CTRL-E
Dave Wilder
D.Wilder at F5.com
Fri Feb 1 16:35:22 CET 2013
-----Original Message-----
From: Tutor [mailto:tutor-bounces+d.wilder=f5.com at python.org] On Behalf Of Dave Angel
Sent: Friday, February 01, 2013 7:38 AM
To: tutor at python.org
Subject: Re: [Tutor] Need to be able to accept Page Down or CTRL-E
On 02/01/2013 03:34 AM, Alan Gauld wrote:
>>
>> <snip>
>>
>> OTOH if you mean you want to send the page up/down/arrows as the
>> "something" then its a different game and you can do it. In that case
>> you need todo what you did with ESC. The character set your external
>> app uses will determine the codes you send. Assuming its the same set
>> as your local setup you can use the following program(untested!) to
>> read the codes from your keyboard (assuming you are on Windows):
>>
>> import msvcrt
>>
>> print "Hit space to end..."
>> print
>>
>> while True:
>> ky = msvcrt.getch()
> The OP is running Python 2.73 on Linux.
Okay, thanks Alan and Dave. I will look into this a little more and if need be, email the list again but taking Dave's advice and start over w/ a clearer problem statement.
Dave
--
DaveA
_______________________________________________
Tutor maillist - Tutor at python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list