general i/o question

2008-05-07 Thread rmgls
Hi all, Sorry if its a FAQ but i don't find any answer for this topic. i need to test (NOWAIT), the presence of keypressed/depressed on a terminal and then read the scan code, like for a piano pc keyboard. my questions are as follows: 1. is it a general C function which may scan a terminal wit

Re: general i/o question

2008-05-07 Thread Garrett Cooper
On May 7, 2008, at 8:39 AM, [EMAIL PROTECTED] wrote: Hi all, Sorry if its a FAQ but i don't find any answer for this topic. i need to test (NOWAIT), the presence of keypressed/depressed on a terminal and then read the scan code, like for a piano pc keyboard. my questions are as follows:

Re: general i/o question

2008-05-07 Thread David Malone
On Wed, May 07, 2008 at 05:39:00PM +0200, [EMAIL PROTECTED] wrote: > i need to test (NOWAIT), the presence of keypressed/depressed on a terminal > and then read the scan code, like for a piano pc keyboard. > > my questions are as follows: > > 1. is it a general C function which may scan a termina

Re: general i/o question

2008-05-07 Thread Jeremy Chadwick
On Wed, May 07, 2008 at 05:39:00PM +0200, [EMAIL PROTECTED] wrote: > i need to test (NOWAIT), the presence of keypressed/depressed on a terminal > and then read the scan code, like for a piano pc keyboard. > > my questions are as follows: > > 1. is it a general C function which may scan a termina

Re: general i/o question

2008-05-07 Thread Mike Meyer
On Wed, 7 May 2008 14:40:57 -0700 Jeremy Chadwick <[EMAIL PROTECTED]> wrote: > On Wed, May 07, 2008 at 05:39:00PM +0200, [EMAIL PROTECTED] wrote: > > i need to test (NOWAIT), the presence of keypressed/depressed on a terminal > > and then read the scan code, like for a piano pc keyboard. > > > >

Re: general i/o question

2008-05-07 Thread rmgls
On Wed, 7 May 2008 14:40:57 Jeremy Chadwick <[EMAIL PROTECTED]> wrote: > On Wed, May 07, 2008 at 05:39:00PM +0200, [EMAIL PROTECTED] wrote: > > i need to test (NOWAIT), the presence of keypressed/depressed on a terminal > > and then read the scan code, like for a piano pc keyboard. > > > > my q