Posted 15 June 2013 - 02:46 PM
when i use os.pullEvent("key") in a program, it seems like the last key grabbed will also be entered into the shell when the program exits.
so if i run a program like this:
it will also type whatever key i press into the shell if it is a visible character. it doesn't seem to happen with arrow keys or return. is there any way to prevent this?
so if i run a program like this:
local ev, k = os.pullEvent("key")
print(k)
it will also type whatever key i press into the shell if it is a visible character. it doesn't seem to happen with arrow keys or return. is there any way to prevent this?