Okay, one more quick question after searching the usual resources and not
finding anything that looks quite right.  (I never figured out how to do
this in Unix Perl either, but I figure it has to be a piece of cake for
someone out there.)

I have a real-time control application that needs to poll STDIN, which
will actually be the keyboard in this case. Specifically, I need a
function that will return a keystroke if a key has been pressed (without
requiring the return key to be pressed as well), and otherwise return null
and continue with the main loop.

An answer to this will keep many people from becoming vaguely unsettled on 
Saturday night when the lights get out of sync with the music.  :)

Simple, right?  I hope so...

Thanks,
Ethan

Reply via email to