Path: utzoo!attcan!uunet!convex!killer!vector!rpp386!jfh From: jfh@rpp386.UUCP (John F. Haugh II) Newsgroups: comp.unix.questions Subject: Re: how to poll keyboard Summary: O_NDELAY or pick a VTIME value Message-ID: <5005@rpp386.UUCP> Date: 5 Aug 88 13:24:49 GMT References: <5065@husc6.harvard.edu> Reply-To: jfh@rpp386.UUCP (The Beach Bum) Organization: Big "D" Home for Wayward Hackers Lines: 13 In article <5065@husc6.harvard.edu> nakada@husc8.UUCP (Paul Nakada) writes: > >I am in need of a way to read a terminal keyboard without >stopping if there is no keypress... open the file with O_NDELAY. or, you can use the VTIME/VMIN feature and try a few different values. there is, however, no way to tell (in general) if a key is _currently_ being pressed. -- John F. Haugh II +--------- Cute Chocolate Quote --------- HASA, "S" Division | "USENET should not be confused with UUCP: killer!rpp386!jfh | something that matters, like CHOCOLATE" DOMAIN: jfh@rpp386.uucp | -- apologizes to Dennis O'Connor