L
Lars Madsen
if one e.g . wants to write a countdown one can do this as
$|=1;
....
# some loop
printf "% 4d\r", $count;
where \r then makes sure that we reprint on them same line over and over again.
But what if you want to do this with several lines at once?
I have a data structure with, say, 10 special entries that changes every second,
I would like to have a continous overview if these numbers in the same fashion
as above.
How would one do that?
$|=1;
....
# some loop
printf "% 4d\r", $count;
where \r then makes sure that we reprint on them same line over and over again.
But what if you want to do this with several lines at once?
I have a data structure with, say, 10 special entries that changes every second,
I would like to have a continous overview if these numbers in the same fashion
as above.
How would one do that?