Make progress bar adapt to terminal width