where “pass” takes a few seconds to run. So the whole thing takes some hours. Printing “count” gives me a warm feeling that it is moving along. But it fills the screen in an unpleasant way. What I would like to happen is that
count =1
appears on the screen, while pass runs for the first time, and then
is REPLACED ON THE SCREEN (OVERWRITTEN) by
count=2
while pass runs for the second time, and so on. So I get the warm feeling of watching count increase, without filling the screen.
Hans suggestion hits the bullseye, but Also consider PrintTemporary. It is not exactly what you asked for but it is useful as well for monitoring progress.
Before my code I use e.g. pdr[x,{x}], which shows x and updates whenever it does, or pdr[ListLinePlot[data],{},5] which updates a plot every 5 seconds, or whatever. It disappears when the block is done running.