Skip to content

Conversation

@linzhp
Copy link
Contributor

@linzhp linzhp commented Oct 13, 2025

The logic adjusting the rendering based on terminal size assumes the output is stdout. This is only makes sense when the output is stdout.

Proposed Changes

  • this PR move the goroutine p.watchTerminalSize() so it's only called when p.outputWriter is set to os.Stdout

@coveralls
Copy link

coveralls commented Oct 13, 2025

Pull Request Test Coverage Report for Build 19111272497

Details

  • 5 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.1%) to 99.773%

Files with Coverage Reduction New Missed Lines %
progress/progress.go 2 99.0%
progress/tracker.go 2 98.73%
Totals Coverage Status
Change from base Build 18989243724: -0.1%
Covered Lines: 3961
Relevant Lines: 3970

💛 - Coveralls

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 5, 2025

@linzhp
Copy link
Contributor Author

linzhp commented Nov 5, 2025

@jedib0t can you take another look?

@jedib0t jedib0t merged commit 4d8d073 into jedib0t:main Nov 6, 2025
4 checks passed
@linzhp linzhp deleted the stdout branch November 7, 2025 02:45
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.

3 participants