Euphoria Ticket #771: New line after gets()

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:

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


Type: Bug Report Severity: Minor Category: Interpreter
Assigned To: unknown Status: Accepted Reported Release: 4,0,4
Fixed in SVN #: View VCS: none Milestone:

1. Comment by DerekParnell Jun 18, 2012

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.

2. Comment by Insolor Jun 18, 2012

It seems that printf() is not the only problem. I just have tried puts() and ?, and there was the same problem.

3. Comment by DerekParnell Jun 18, 2012

Yeah, I also tried those and agree. It's console output that is at fault.


Quick Links

User menu

Not signed in.

Misc Menu