[Scilab-users] Scilab API sciprint to print on the same line
Chin Luh Tan
chinluh.tan at bytecode-asia.com
Wed Dec 11 14:31:06 CET 2019
Hi,
I am trying to print some progress of a for loop in C api which will print the output in scilab console using the sciprint.
Is there anyway to print the output to a same line as normal C printf could be achieved using '\r' ?
e.g.:
currently my out out showing:
Train Epoch: 10 [ 1000/15416] Loss: 0.5961
Train Epoch: 10 [ 2000/15416] Loss: 0.6794
Train Epoch: 10 [ 3000/15416] Loss: 0.3965
Train Epoch: 10 [ 4000/15416] Loss: 0.8110
Train Epoch: 10 [ 5000/15416] Loss: 0.7892
I would like to have the output to show on the same line.
I tried \r with fflush(stdout) it seems not working.
Thanks.
rgds,
Chin Luh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20191211/41994e30/attachment.htm>
More information about the users
mailing list