summaryrefslogtreecommitdiff
path: root/docs/next-terminal.md
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 11:25:20 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commit73b7602b7948fe4b459f4344f091910297d4a107 (patch)
tree8d30675d77d62534482d8aee2e154cd1c95ddee1 /docs/next-terminal.md
parentc8cfa9433ddbd210143b99b374406266e94a06c0 (diff)
downloadpardes-73b7602b7948fe4b459f4344f091910297d4a107.tar.gz
pardes-73b7602b7948fe4b459f4344f091910297d4a107.zip
Term: paint only the view's rows the body shows (docs/next-terminal.md, Phase 1 as built): Term.paint takes the first row, and ansi.recolor walks the body once first for the rows its grid lines and an edit copy's lines stand over, so a pane shorter than its terminal (perf's render gesture: a 3-row shell strip beside the file, its terminal still 118x37 until the next update resizes it to 118x2) no longer paints 37 rows of cells (4,366 Painted, 20 bytes each, 87 KB a frame) to show 2, as Phase 0's walk never did; render on medium, best of ten, back to back against the tree before: tui Debug 126/124/127 -> 81/82/81 us, gui Debug 128/129/124 -> 82/83/82, tui ReleaseFast 110/107/112 -> 75/74/74 (the old baselines: 81, 81, 73), 0.72M instructions:u a frame fewer, every other gesture unchanged; perf --terminal-mib 8 and 32 (instructions:u, 3 runs each): 3,928.7M -> 3,928.5M and 13,219.2M -> 13,217.9M; the perf baselines recorded anew in the three shapes (Zig 0.17.1, harness aed36aceb98afadd), so unit-test's perf check passes again; tui core-test 811/950 (139 skipped), shell-test 993/996, term-test 15/15, pane-test 180/181, kitty-test 45/45, behaviour-test 269/273 (the four addon ABI tests the base fails), process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's), replicas pass (checked/wrong 0), image-harness and kitty-harness pass, unit-test 1528/1536 (the four addon tests); gui core-test 811/950, image-harness and kitty-harness pass, unit-test 1587/1595 (the four addon tests)HEADmain
Diffstat (limited to 'docs/next-terminal.md')
-rw-r--r--docs/next-terminal.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/next-terminal.md b/docs/next-terminal.md
index 1229df6f..2a8b61c3 100644
--- a/docs/next-terminal.md
+++ b/docs/next-terminal.md
@@ -209,7 +209,10 @@ What differs from the plan above, and why:
replica's presentation, and reads the emulator through five entries
(`grid`, `modes`, `prompt`, `echoCell`, `markRead`).
- **The draw group is plain data** (Phase 0 left it typed in the core's
- types): `Term.paint` fills a cell buffer in the theme's colours, the
+ types): `Term.paint` fills a cell buffer in the theme's colours with
+ the view's rows the body shows (painting the whole view cost a frame
+ of the perf harness's `render` 82 -> 127 µs: a 3-row pane over a
+ terminal still 37 rows tall, until the next update resized it), the
core lays it over the body (src/ansi.zig), and `Term.images` gives
placements. The colour filter stays the terminal's, as it wraps
ghostty's `generate256Color`. A finished command pane's diff colours