The if statement is helpful to update only when $time contains data. The cursor appears fixed now.
printf "\rProgress: %s", $time if $time;
In reply to Re^5: Shared memory and asynchronous access
by Anonymous Monk
in thread Shared memory and asynchronous access
by vef445
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |