Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix terminal width when stdout is redirected #215

Merged
merged 1 commit into from
Feb 8, 2025

Conversation

WGH-
Copy link
Contributor

@WGH- WGH- commented 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 #91, but was broken in #156.

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.
@schollz schollz merged commit 1a5d483 into schollz:main Feb 8, 2025
1 check passed
@schollz
Copy link
Owner

schollz commented Feb 8, 2025

Looks great, thanks!

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