lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

perhaps using luaLanes for having another thread-lane doing and sending to a linda in main thread?
----- Original Message -----
Sent: Saturday, November 30, 2013 1:41 AM
Subject: Check for a keypress

Is there a way from inside Lua to check whether any key has been pressed? will get a line from the console but if there is no input it pends waiting for input.  I would like to be able to write a test that gets input if any is ready but would continue if there is none.  It is not obvious to me if this can be done at all.

Jose de la Torre-Bueno, Ph.D.
Empowered Energy Solutions Inc.
Intellectual Property & Technology Management
T (619) 977-0553
F (760) 295-7119