Add code to print progress in single line on ttys