7 posts
Posted 06 February 2013 - 12:14 PM
I have a program that prints text and would like to not have it sleep but wait for user input to advance the program (I haven't actually written it yet so I dont have any code sorry).
8543 posts
Posted 06 February 2013 - 12:30 PM
Split into new topic.
You're either looking for:
print("Press any key to continue.")
os.pullEvent("key")
Or:
local input
repeat
print("Type yes to continue.")
input = read()
until string.lower(input) == "yes"
… I think. :)/>
7 posts
Posted 06 February 2013 - 12:41 PM
Thank you