Skip to content

Conversation

@rafaelmartins
Copy link
Contributor

with the progressbar writing to stderr, when redirecting stdout to a file, the progressbar wasn't stretching to the whole line, limited at 80 columns.

@schollz
Copy link
Owner

schollz commented Nov 23, 2020

thanks! looks great

@schollz schollz merged commit b97839d into schollz:master Nov 23, 2020
WGH- added a commit to WGH-/progressbar that referenced this pull request Feb 7, 2025
Instead of always checking stdout, check the actually configured output
file. Fixes cases when stdout is redirected to a file or /dev/null, but
stderr remains connected to the terminal.

It was previously fixed in schollz#91, but was broken in schollz#156.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants