lavermil has asked for the wisdom of the Perl Monks concerning the following question:
I have the desire to print a multi-line status while a script is running. The script for example is a simple backup script.
My desire is to have something similar the following.
The line "/etc/hosts" would update with the different files/etc that is getting backed up but on the same line.Script Started Start Checking/collecting info Please wait... Finished checking/collecting info. Backup Process Starting /etc/hosts <-- 10% (1/10) Complete -->
A single line is rather simple to do if I use the code below.
The problem I have here is I can't seem to get this to work without generating \n.print "\e[K Something\r";
TIA,
Lance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Multi-line Status while script is running
by wind (Priest) on Mar 24, 2011 at 00:13 UTC | |
by lavermil (Initiate) on Mar 24, 2011 at 18:33 UTC |