ATT-21 double-width and double-height rows (ESC # 3, 4, 5, 6) #4

Merged
merge-queue merged 1 commit from ATT-21-line-size into main 2026-11-18 13:55:22 -08:00
Owner

Work package: https://openproject.home.romaine.life/wp/ATT-21 (part of https://openproject.home.romaine.life/wp/ATT-19)

Double-width and double-height rows, which at-claude's DONE rows use (at-tmux sends ESC # 3/ESC # 4 for them; Rio ignored every line size, so they drew single height).

What changes

  • rio-vt: LineSize (single, double width, double-height top/bottom) on each Row. It travels with the row into scrollback and through snapshots; a reset or recycled row (a cleared screen, a scrolled-in line) is single again. The parser dispatches ESC # 3, 4, 5, 6 to a new Handler::set_line_size, which sets the cursor's row and damages it. Tests: esc_hash_sets_the_cursor_rows_line_size, a_cleared_screen_is_single_again.
  • rio-grid line_size.rs: a double row is built by the existing row builders over the half of its columns that shows, at twice the font and cell size for double height, then laid onto the real grid: each background covers two cells; each glyph moves to its double cell; a double-height glyph is cut to its own row's half by narrowing its atlas rectangle, so the top row draws the top half and the bottom row the bottom half, whatever is next to either; a double-width glyph keeps its height, centred in its double cell. Every backend (wgpu, Metal, Vulkan, CPU) draws a CellText the same way (atlas rect at grid position plus bearings, one atlas pixel per screen pixel), so none of the shaders change. Tests: 7, on the placement and cutting arithmetic.
  • rioterm row rebuild uses it. A double row gets no IME composition and no cursor-run break.

Limits: double width is spacing, not stretching: glyphs keep their single width in a double cell. libsugarloaf's C API rows don't apply line sizes (at-terminal doesn't use it).

Checked on upstairspc (Windows): cargo fmt --check, clippy -D warnings and the workspace tests pass. nelsonpc builds nothing. CI covers Linux.

Only a real desktop shows: how a DONE pair looks drawn (glyph halves meeting at the row boundary).

Work package: https://openproject.home.romaine.life/wp/ATT-21 (part of https://openproject.home.romaine.life/wp/ATT-19) Double-width and double-height rows, which at-claude's DONE rows use (at-tmux sends `ESC # 3`/`ESC # 4` for them; Rio ignored every line size, so they drew single height). **What changes** - `rio-vt`: `LineSize` (single, double width, double-height top/bottom) on each `Row`. It travels with the row into scrollback and through snapshots; a reset or recycled row (a cleared screen, a scrolled-in line) is single again. The parser dispatches `ESC # 3`, `4`, `5`, `6` to a new `Handler::set_line_size`, which sets the cursor's row and damages it. Tests: `esc_hash_sets_the_cursor_rows_line_size`, `a_cleared_screen_is_single_again`. - `rio-grid` `line_size.rs`: a double row is built by the existing row builders over the half of its columns that shows, at twice the font and cell size for double height, then laid onto the real grid: each background covers two cells; each glyph moves to its double cell; a double-height glyph is cut to its own row's half by narrowing its atlas rectangle, so the top row draws the top half and the bottom row the bottom half, whatever is next to either; a double-width glyph keeps its height, centred in its double cell. Every backend (wgpu, Metal, Vulkan, CPU) draws a `CellText` the same way (atlas rect at grid position plus bearings, one atlas pixel per screen pixel), so none of the shaders change. Tests: 7, on the placement and cutting arithmetic. - `rioterm` row rebuild uses it. A double row gets no IME composition and no cursor-run break. **Limits**: double width is spacing, not stretching: glyphs keep their single width in a double cell. libsugarloaf's C API rows don't apply line sizes (at-terminal doesn't use it). **Checked** on upstairspc (Windows): `cargo fmt --check`, clippy `-D warnings` and the workspace tests pass. nelsonpc builds nothing. CI covers Linux. **Only a real desktop shows**: how a DONE pair looks drawn (glyph halves meeting at the row boundary).
ATT-21 double-width and double-height rows (ESC # 3, 4, 5, 6)
All checks were successful
merge-queue landed on main
Suite rust / scope (pull_request) Successful in 29s
Suite default / scope (pull_request) Successful in 29s
Suite rust / check-services (pull_request) Has been skipped
Suite rust / check-typos (pull_request) Has been skipped
Suite rust / check-machete (pull_request) Has been skipped
Suite rust / check-audit (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
Suite default / reused-checks (pull_request) Successful in 22s
Suite rust / check-format (pull_request) Successful in 29s
Suite rust / check-test-linux (pull_request) Successful in 3m55s
Suite rust / check-test-windows (pull_request) Successful in 11m17s
Suite rust / reused-checks (pull_request) Successful in 13s
ec1c68757a
merge-queue deleted branch ATT-21-line-size 2026-11-18 13:55:22 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/at-terminal!4
No description provided.