lua-users home
lua-l archive

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


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