Another test program:
for i=1 to 5 do
object s = gets(0)
printf(1," %d\n",i)
end for
Type anything 5 times and press Enter each time. You will get something like that:
sdfhg
1
jftyk 2
lui; 3
yuk 4
rth 5
I.e. cursor is moved to a new line after the first gets, but it isn't after the further getses. I think it would be rather not moved at all, or moved each time after gets().
Eui ver:
Euphoria Interpreter v4.0.4
Windows, Using Managed Memory
Revision Date: 2012-04-02, Id: 11a49820121f
Platform: WinNT, Build: Windows7, Service Pack 1:2
Confirmed. The printf() is the problem. It appears to be repositioning the cursor prior to output. If you run the example code without the printf() you get the expected result.
It seems that printf() is not the only problem. I just have tried puts() and ?, and there was the same problem.
Yeah, I also tried those and agree. It's console output that is at fault.