in reply to Overwriting printed text

abigail's posting is more canonically used for "replace the whole line" applications. That is, the character "\r" will work as a carriage-return without proceeding to the next line, on most terminal-like devices and emulators today.

See peek - output a one-line preview of stdin for my example using this technique.

--
[ e d @ h a l l e y . c c ]