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

2013-02-01 Thread Steven D'Aprano
On 01/02/13 23:38, Dave Angel wrote: On 02/01/2013 03:34 AM, Alan Gauld wrote: 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 w

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

2013-02-01 Thread Alan Gauld
On 01/02/13 12:38, Dave Angel wrote: your local setup you can use the following program(untested!) to read the codes from your keyboard (assuming you are on Windows): import msvcrt The OP is running Python 2.73 on Linux. OK, I didn't notice that. In that case the Linux variant on my tutor

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

2013-02-01 Thread Dave Wilder
-Original Message- From: Tutor [mailto:tutor-bounces+d.wilder=f5@python.org] On Behalf Of Dave Angel Sent: Friday, February 01, 2013 7:38 AM To: tutor@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

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

2013-02-01 Thread Dave Angel
On 02/01/2013 03:34 AM, Alan Gauld wrote: 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. As

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

2013-02-01 Thread Alan Gauld
On 01/02/13 03:19, Dave Wilder wrote: So how are you taking this input in? I am using a terminal application and an application called pexpect OK, We need to get the terminology a lot more exact. I'm guessing that what you mean is that you have an application that somebody else wrote runni

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

2013-01-31 Thread Dave Angel
On 01/31/2013 10:19 PM, Dave Wilder wrote: On 01/31/2013 09:43 PM, Dave Wilder wrote: Hello, 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, coul

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

2013-01-31 Thread Dave Wilder
>> On 01/31/2013 09:43 PM, Dave Wilder wrote: >> Hello, >> >> 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 do

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

2013-01-31 Thread Dave Angel
On 01/31/2013 09:43 PM, Dave Wilder wrote: Hello, 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

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

2013-01-31 Thread Dave Wilder
Hello, 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