Question: simple progress bar

As a simple progress bar, I want to print a dot every time one step of a for loop is finished, for example I tried for i from 1 to nsteps do printf("."); end do: However, this prints all dots at once the moment the complete loop is finished. Using for i from 1 to nsteps do writeline(default,`.`); end do: prints every step a dot, however it includes a new line command (dots appear below each other). Does anyone has suggestions how to make the progress bar? Niels.
Please Wait...