dhannotte has asked for the wisdom of the Perl Monks concerning the following question:
Under 5.6, when I sent a carriage return to the command line using
print("\r");it positioned the cursor back at the beginning of the line. Thus I could show a changing value on one line of output, usually by doing something like
print"\rJob %2d% completed.", pc);By issuing this message once a second I could always see the status of my job, wasting very few processing cycles. As of 5.8, however, nothing appears until I print a newline by
print("\n");Have the i/o semantics changed? Is there a work-around for this?
Thanks very much!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Carriage return handling difference between 5.6 and 5.8
by graff (Chancellor) on Aug 10, 2008 at 23:01 UTC | |
|
Re: Carriage return handling difference between 5.6 and 5.8
by Lawliet (Curate) on Aug 10, 2008 at 23:03 UTC | |
by dhannotte (Acolyte) on Aug 11, 2008 at 02:52 UTC | |
by Lawliet (Curate) on Aug 11, 2008 at 02:59 UTC | |
by Anonymous Monk on Aug 11, 2008 at 03:16 UTC | |
by roboticus (Chancellor) on Aug 11, 2008 at 12:51 UTC | |
by Anonymous Monk on Aug 11, 2008 at 12:58 UTC | |
|