Date: Wed, 7 May 2008 10:49:17 -0700 From: Garrett Cooper <yanefbsd@gmail.com> To: rmgls@free.fr Cc: freebsd-hackers@freebsd.org Subject: Re: general i/o question Message-ID: <D7DE7804-901B-4DF6-BC19-425992661DDA@gmail.com> In-Reply-To: <20080507153903.41F6C322858@smtp7-g19.free.fr> References: <20080507153903.41F6C322858@smtp7-g19.free.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
On May 7, 2008, at 8:39 AM, rmgls@free.fr 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: > > 1. is it a general C function which may scan a terminal without > waiting? > > 2. how to get the scancodes? > > of course i can poll tje (0x64) keyboard port on a i386 architecture, > but this is not a general method, and it is suited for a distant > terminal > for instance. > > Any hint would be appreciated. > > thanks in advance. > > rmgls getc(3), or were you looking for something a bit more specific? -Garret
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D7DE7804-901B-4DF6-BC19-425992661DDA>