Clear the progress bar after completion. (Closes: #901758)
Handle terminals that do not support erasing the line by filling the terminal with spaces. Ignore output devices that are not terminals. Implements: https://bugs.debian.org/901758 Requires: Python 3.2 for shutil.get_terminal_size