NewBie: How Can I Scan The Keyboard In Python?
Alain TESIO
alain at onesite.org
Fri Jan 12 13:17:52 EST 2001
On Fri, 12 Jan 2001 13:47:30 GMT, jbranthoover at my-deja.com wrote:
>Hello Fredrik,
> Thank you for your response. I guess that neglected to mention
>that I am running Python 1.5.2 on a Lynx (not linux) box. I suppose
>that the msvcrt module makes use of windows API calls and must run on a
>windows based system?
>
> Anyway thanks for the information. If you have any other
>Ideas, please pass them along. Have a great day...!
I think you can use select to check if there is something in stdin.
Look at "man select" for an example in C.
Alain
More information about the Python-list
mailing list