Article View: comp.sys.amiga.tech
Article #10996Non-blocking keyboard reads
From: A. Wen
Date: Tue, 17 Jan 1989 15:12
Date: Tue, 17 Jan 1989 15:12
13 lines
1005 bytes
1005 bytes
I've been mulling over ways to do non-blocking keyboard reads without
polling the keyboard; is there any way that I can be signalled when the
console device has input available short of creating a new task to block
for input and then signal its parent process?
That is, if I am waiting for the timer to wake me up, but I need to be notified
of any keystrokes that may occur in the meantime, is there anything simple
(short of busy-waiting) that I can do?
--
A. Wen wen@husc4.HARVARD.EDU wen@husc4.BITNET {seismo!harvard!husc4}
"The fact that I believe in my own free will was completely predetermined."
Technical Details
Message-ID:
<1004@husc6.harvard.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!xanth!ukma!rutgers!cmcl2!husc6!husc4!wenShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!xanth!ukma!rutgers!cmcl2!husc6!husc4!wen From: wen@husc4.HARVARD.EDU (A. Wen) Newsgroups: comp.sys.amiga.tech Subject: Non-blocking keyboard reads Message-ID: <1004@husc6.harvard.edu> Date: 17 Jan 89 15:12:12 GMT Sender: news@husc6.harvard.edu Reply-To: wen@husc4.UUCP (A. Wen) Organization: Harvard College Lines: 13