---- Original Message ----
Sent: Tuesday, 2011. February 8. 14:28
Subject: [Support-t-2595] Scrolling output to single, non-scrolling line
| I've got a command-line app which spits out a long, quickly scrolling
| output as it works. The output consists of similar, repeated lines in
| which some numbers are updated continuously as the app works. Is
| there a way to pipe this output through something (via stdin or some
| such), so that instead of the quickly scrolling output, I get a
| single, non-scrolling line with constantly updated numbers? I've seen
| command-line apps whose real-time output is a single, but constantly
| changing line.
Assuming that your command line application is a TCC batch file, replace the ECHO statement that generates the varying output with:
where "xxxx" is the data displayed by the ECHO command it replaces. The ECHOS command does not append a "new line" when completed (unlike ECHO), and the %=r sequence starts each line with a "carriage return", i.e., on the left margin.
I use this technique often.