Simulator don't launch immediatly

Hi all,

Why the simulator does not start immediately but seems execute calculations first.

For example, if I expected the keypress like this:

This don’t work

local function main() local myNewText=display.newText('Hello', 50, 50, "Arial", 12)     io.write('Hit any key')     enter=io.read() end main()  

This Work:

local function main()     local myNewText=display.newText('Hello', 50, 50, "Arial", 12)     --io.write('Hit any key')     --local enter=io.read() end main()  

In this example, the simulator does not start at all.

I work with Glider.

Thank’s