Skip to content

Diagnostics shows how big TuiCode thinks a terminal cell is (#335) - #352

Merged
jamescrosswell merged 1 commit into
mainfrom
milestone-335-diagnostics-cell-size
Sep 30, 2026
Merged

jamescrosswell merged 1 commit into
mainfrom
milestone-335-diagnostics-cell-size

Conversation

@a-team-app

@a-team-app a-team-app Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

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, or 10 × 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

  • The row reads asking the terminal… until an answer arrives (up to TG's 1 s abandon timeout), as the Cursor colour row does.
  • On the Windows legacy console, which can't be asked, it shows the assumed default straight away.
  • The overlay is one row taller.
    a-team try tuicode 352

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>
@a-team-app
a-team-app Bot marked this pull request as ready for review September 29, 2026 11:37
@jamescrosswell
jamescrosswell merged commit 8915cc3 into main Sep 30, 2026
16 checks passed
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.

Diagnostics shows how big TuiCode thinks a terminal cell is

1 participant