Repeating screen print
BAKERWL at UWYO.EDU
BAKERWL at UWYO.EDU
Fri Jun 3 16:47:07 EDT 1994
In r.le I have the program print to stdout a message indicating
how the tracing of patches is proceeding. The message is supposed to
reprint on top of the previous message so it ticks off the patch numbers
as they are traced. But occasionally it gets off kilter and then fills
the screen with messages rather than putting them one on top of each
other. Anyone know a better way to do this? Here's the code as it
is now:
fprintf(stdout,"Tracing patch %7d\b\b...21 of these...\b",tot);
fflush(stdout);
Apparently, every so often the flush messes up or maybe the backspace...
Ideas?
Bill Baker
bakerwl at uwyo.edu
More information about the grass-dev
mailing list