keystroke check

Ben Finney bignose-hates-spam at and-benfinney-does-too.id.au
Thu Jul 31 07:23:49 CEST 2003


On Wed, 30 Jul 2003 19:34:58 -0700 (PDT), Wes Fraser wrote:
> Is there any way to check in a loop to see if at that given moment in
> the program, a key on the key board is being pressed without actually
> stopping like raw_ipnut does?

I don't have an answer, but what you're referring to is commonly termed
"blocking I/O", that is, the call to raw_input blocks the program until
it gets a result.  This may help you search for solutions.

-- 
 \     "What if the Hokey Pokey IS what it's all about?"  -- Anonymous |
  `\                                                                   |
_o__)                                                                  |
Ben Finney <http://bignose.squidly.org/>




More information about the Python-list mailing list