Article View: comp.unix.programmer
Article #962can i test for keyboard input?
From: mike newman
Date: Wed, 03 Oct 1990 04:17
Date: Wed, 03 Oct 1990 04:17
20 lines
1108 bytes
1108 bytes
I would like to be able to respond dynamically to keyboard input
(without doing getchar and waiting for the user to type something) by
either:
1) Having some kind of interrupt routine that will be called
every time a key is pressed.
2) Calling some OS routine that returns TRUE/FALSE if there
is/isn't any keyboard input waiting. I know my little ol' ST
at home (bless it's heart :-) has such a call: does unix?
3) Any other way :-).
This seems like it should be possible: musn't the shell do something
along these lines to handle type ahead? (???)
Please email replies: if there is interest, I will post a summary.
mike newman
mwnewman@msg.waterloo.edu
Technical Details
Message-ID:
<1990Oct3.041737.2280@watmath.waterloo.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!watmsg!mwnewmanShow Full Headers
Complete Article Headers
Newsgroups: comp.unix.programmer,comp.unix.questions Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!watmsg!mwnewman From: mwnewman@watmsg.uwaterloo.ca (mike newman) Subject: can i test for keyboard input? Message-ID: <1990Oct3.041737.2280@watmath.waterloo.edu> Sender: daemon@watmath.waterloo.edu (Owner of Many System Processes) Organization: University of Waterloo Date: Wed, 3 Oct 90 04:17:37 GMT Lines: 20