Use ANSI code to delete to the end of line, if supported. Otherwise pad to right end of line. Do no delete the bar first, to avoid flickering.
Activity
Use ANSI escape seq to clear status bar, if supported