Re: Non blocking user input
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Non blocking user input
- From: Philipp Janda <siffiejoe@...>
- Date: 2014年3月21日 02:37:22 +0100
Am 20.03.2014 19:19 schröbte Victor Bombi:
The point is that there's no platform-independent way of doing this....
Yes, with luaLanes
LuaLanes isn't platform independent (although it runs on Windows and
POSIX at least). Additionally, while you can avoid blocking your program
via an extra thread, you might still have to wait for a newline
character, before any key presses are signaled to you (terminal input
usually is line-buffered).
If you are on a POSIX machine, see here[1] for a possible solution using
luaposix ...
Philipp
[1]: http://permalink.gmane.org/gmane.comp.lang.lua.general/104876