<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hi,<br></div><div><br></div><div>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.<br></div><div><br></div><div>Is there anyway to print the output to a same line as normal C printf could be achieved using '\r' ? <br></div><div><br></div><div>e.g.:<br></div><div><br></div><div>currently my out out showing:<br></div><div><br></div><div>Train Epoch: 10 [ 1000/15416] Loss: 0.5961 <br></div><div>Train Epoch: 10 [ 2000/15416] Loss: 0.6794<br></div><div>Train Epoch: 10 [ 3000/15416] Loss: 0.3965<br></div><div>Train Epoch: 10 [ 4000/15416] Loss: 0.8110<br></div><div>Train Epoch: 10 [ 5000/15416] Loss: 0.7892<br></div><div><br></div><div>I would like to have the output to show on the same line. <br></div><div><br></div><div>I tried \r with fflush(stdout) it seems not working.<br></div><div><br></div><div>Thanks.<br></div><div><br></div><div>rgds,<br></div><div>Chin Luh</div></div><br></body></html>