Skip to content

Fix terminal width when stdout is redirected#215

Merged
schollz merged 1 commit intoschollz:mainfrom
WGH-:fix-termWidth
Feb 8, 2025
Merged

Fix terminal width when stdout is redirected#215
schollz merged 1 commit intoschollz:mainfrom
WGH-:fix-termWidth

Conversation

@WGH-
Copy link
Copy Markdown
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
@schollz
Copy link
Copy Markdown
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