Dear Scilab'ers,

The following code, when executed from SciNotes in Scilab 5x, printed the loop 
progress to console, at same location, thanks to  printf ("\r").
The printf behaviour seems to have changed in Scilab 6x, and the strings are 
now printed one after the other.

printf("Print loop progress at same place in console (was OK in Scilab 5x):\n");
N = 1e5;
j=1;
for i=1:N
    if modulo(i,int(N/10))==0 then      // Print progress by steps of 10%
        printf("Progress = %i%s\r",j*10,"%"); // carriage return, prints at 
same place on console
        j=j+1;
    end
end


Is it still possible to print at same place to console in Scilab 6x?

Regards,
Rafael

_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to