freddo411 has asked for the wisdom of the Perl Monks concerning the following question:
I'm missing something here.... I'm trying to print "Message1"; then do some lengthy processing, then I'd like to print "Message 2"; OVER the top of "Message 1".
Notice I did not use "\n";
based upon suggestions, I tried:
$| = 1; print 'mystuff' ; print "\rOVERWRITE"; ---------------------------------------- BAD OUTPUT: mystuff OVERWRITE ---------------------------------------- Desired, final OUTPUT: OVERWRITE
How do I do this?
--Fred
-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dynamically overwriting a line of text on stdout console
by Zaxo (Archbishop) on Jul 22, 2004 at 22:14 UTC | |
by freddo411 (Chaplain) on Jul 22, 2004 at 22:52 UTC | |
|
Re: Dynamically overwriting a line of text on stdout console
by beable (Friar) on Jul 22, 2004 at 23:44 UTC | |
|
Re: Dynamically overwriting a line of text on stdout console
by pg (Canon) on Jul 22, 2004 at 23:14 UTC | |
|
Re: Dynamically overwriting a line of text on stdout console
by ysth (Canon) on Jul 22, 2004 at 22:19 UTC | |
|
Re: Dynamically overwriting a line of text on stdout console
by gellyfish (Monsignor) on Jul 23, 2004 at 09:27 UTC |