|io.read waits before any print() output? [message #1008738]
||Wed, 13 February 2013 18:47
Registered: February 2013
I am trying to run my script in the editor which has code something like this: |
print('Enter your Name:')
When I run it does not print out 'Enter your Name' until after I type something in the console and hit enter. This kind of defeats the point of having a prompt. This applies to all print() functions that I have in code before or after the io.read(). Nothing gets printed until all of the io.read() commands have received input, then everything comes out afterward.
I have run the same code in a different editor (Zerobrane) and it works as I would expect (i.e. prints the prompt then waits for input).
Powered by FUDForum
. Page generated in 0.02734 seconds