Diagnostics shows how big TuiCode thinks a terminal cell is (#335) - #352
Merged
Merged
Conversation
MeasureCell now reports a CellMeasurement (pixels, the reply that answered first, and iTerm2's scale) instead of a bare size, and takes a queue delegate so first-answer-wins is testable without a driver. F12 runs it on every open, like the cursor colour probe, and a legacy console reports the assumed default straight away. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
F12 Diagnostics now has a Cell size row under Cursor colour: the pixel size TuiCode measured for a terminal cell and where it came from —
16 × 35 px • iTerm2 report, scale 2.0,10 × 20 px • CSI 16 t, or10 × 20 px • no answer, assumed. It's measured each time the overlay opens, so a window moved to another screen shows its new size.Closes #335
asking the terminal…until an answer arrives (up to TG's 1 s abandon timeout), as the Cursor colour row does.a-team try tuicode 352