lua-users home
lua-l archive

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

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