pb
pb copied to clipboard
Progress bar should determine terminal width using the specified out stream
Redirecting stdout and printing progress on stderr should determine the correct terminal size. At the moment the terminal size is only calculated correctly if stdout is a tty. Stderr should be used a fallback for that calculation.