Re: Polling from keyboard

2006-05-02 Thread Jean-Paul Calderone
On 2 May 2006 11:04:58 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >I am trying to find a way to poll the keyboard. In my searching, I >have found that Windows users are given the msvcrt module. Is there an >equivilant for Unix systems? > >I am writing a p2p chat application, and would

Re: Polling from keyboard

2006-05-02 Thread Petr Jakes
I am using following code which I have found on http://www.ibiblio.org/obp/py4fun/ few months ago. It works well for my purposes. Another way is to use Curses library. HTH Petr Jakes #!/usr/local/bin/python # # t t y L i n u x . p y # # getLookAhead reads lookahead chars from the keyboard withou

Re: Polling from keyboard

2006-05-02 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > I am trying to find a way to poll the keyboard. In my searching, I > have found that Windows users are given the msvcrt module. Is there an > equivilant for Unix systems? > > I am writing a p2p chat application, and would like to ideally approach > user input in a man

Polling from keyboard

2006-05-02 Thread [EMAIL PROTECTED]
I am trying to find a way to poll the keyboard. In my searching, I have found that Windows users are given the msvcrt module. Is there an equivilant for Unix systems? I am writing a p2p chat application, and would like to ideally approach user input in a manner similar to the way I am using poll