Skip to content

Conversation

aymanbagabas
Copy link
Member

This change uses carriage return (\r) instead of moving the cursor backward by the terminal width at the end of rendering in inline mode. With this, we don't need to know the terminal width to reset the cursor position, which avoids issues when the renderer doesn't yet know the terminal width (e.g. the first render where the size message hasn't been sent to the renderer yet).

Fixes: #1471

@aymanbagabas aymanbagabas requested review from meowgorithm, a team and andreynering and removed request for a team August 15, 2025 22:28
Copy link

codecov bot commented Aug 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.04%. Comparing base (80ea844) to head (5ea5a34).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1472   +/-   ##
=======================================
  Coverage   69.04%   69.04%           
=======================================
  Files          17       17           
  Lines        1741     1741           
=======================================
  Hits         1202     1202           
  Misses        485      485           
  Partials       54       54           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This change uses carriage return (`\r`) instead of moving the cursor
backward by the terminal width at the end of rendering in inline mode.
With this, we don't need to know the terminal width to reset the cursor
position, which avoids issues when the renderer doesn't yet know the
terminal width (e.g. the first render where the size message hasn't been
sent to the renderer yet).

Fixes: #1471
@aymanbagabas aymanbagabas merged commit 28ab4f4 into main Sep 5, 2025
40 checks passed
@aymanbagabas aymanbagabas deleted the reset-cur-pos branch September 5, 2025 14:37
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.

View wraps on macOS Terminal.app despite calculating widths
3 participants