If I understand correctly, you want something like:
print("\rProcessed line number $ctr.");
Test code:
for $ctr (1..10) { sleep(1); print("\rProcessed line number $ctr."); } print("\rDone. \n");
Similar to how "\n" (Line Feed) moves the cursor to the begining of the next line, "\r" (Carriage Return) moves the cursor to the begining of the current line.
In reply to Re: print to command line
by ikegami
in thread print to command line
by saldoman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |