From 0ff1fc99eb870f8a1e714a71c1a853066737c822 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 20:54:21 -0300 Subject: rename: the terminal frontend is the tui (-Dplatform=tui, src/tui/tui.zig, --tui with --tty kept as its old spelling, the process tests' backend .tui and --backend=tui, docs/typ/builtins-tui.json, the Settings report's platform), and the builtin Tty is Term (its registry entry, SPC n t, every default tag, the docs, tests and snap scripts), Tty still run as Term through exec.acme_words, Tty+fish too on a tag and a ctl; tty as a pane's raw mode and as the OS's terminal unchanged Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- docs/next-daemon.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'docs/next-daemon.md') diff --git a/docs/next-daemon.md b/docs/next-daemon.md index 5537bf1a..9865e315 100644 --- a/docs/next-daemon.md +++ b/docs/next-daemon.md @@ -448,7 +448,7 @@ microseconds. Gates, on the line rebased onto main's screen-state terminals (mnlwlpvk): -- `zig build replay -Dplatform=tty`: 113 snapshot scripts pass (the 110, +- `zig build replay -Dplatform=tui`: 113 snapshot scripts pass (the 110, views.snap, views-term.snap and views-pan.snap), their 131 tapes replay in all three replicas (393 runs, 29,436 digests); 20 monkey seeds at one view (60 runs, 14,004 digests) and 20 at three views (60 runs, 9,666 @@ -488,9 +488,9 @@ Everything of ours lives in `/root/pardes-test`, nothing outside it. ```sh export PATH=$HOME/.local/bin:$PATH E='env -u PARDES_PID -u PARDES_PANE -u PARDES_9P' - $E zig build -Dplatform=tty -Dtarget=x86_64-freebsd.15.0 >log 2>&1 + $E zig build -Dplatform=tui -Dtarget=x86_64-freebsd.15.0 >log 2>&1 # zig-out/bin/pardes-freebsd-x86_64 - $E zig build test-install -Dplatform=tty -Dtarget=x86_64-freebsd.15.0 >log 2>&1 + $E zig build test-install -Dplatform=tui -Dtarget=x86_64-freebsd.15.0 >log 2>&1 # zig-out/test/{main,panes,kitty,9p,fonts,...}, named for their root files ``` @@ -760,7 +760,7 @@ thread start in the render). ## Tty throughput notes -Found and fixed 2026-10-29 (`src/tty/tty.zig`, `waitInput`). +Found and fixed 2026-10-29 (`src/tui/tui.zig`, `waitInput`). - **What the 1 GB `yes` cell measures is mostly the kernel.** A pty's output processing (ONLCR, a `\n` made `\r\n`) costs the writer about @@ -907,7 +907,7 @@ against that tty, is the Tty throughput notes' keystroke-to-present. tapes, plus real vim, nvim, htop, less and btop sessions recorded through a pty. Its corpus and recorder are in `.scratch/daemon/term`. - **Numbers** (ReleaseFast: `PARDES_SCREEN_STATE= zig build core-test - -Dplatform=tty -Doptimize=ReleaseFast -Dtest-filter=screen_state`, which + -Dplatform=tui -Doptimize=ReleaseFast -Dtest-filter=screen_state`, which runs under std.testing's checking allocator): - Encode, 200x60, every row new: p50 250 us, p99 487 us, 29.8 KB. - Encode, 200x60, nothing new: p50 71 us, p99 139 us, 534 bytes. That @@ -2180,7 +2180,7 @@ scripts are in `.scratch/daemon/remote/t2/`. `terminal.cellAt` (the final gate's notes, at the end). The gates, once at the end (Debug unless said): -- `zig build unit-test -Dplatform=tty` passes, its perf gate too; +- `zig build unit-test -Dplatform=tui` passes, its perf gate too; `-Dplatform=gui` 1563 of 1575, 10 skipped, and the two that fail on main already (`tagline pointer mapping...`, `a tag caret past its row's end...`). @@ -2800,7 +2800,7 @@ The hook for the remote client (its `Replica` and stream as they are): Measured. -- **The harness** (`zig build replicas -Dplatform=tty -- --echo`): one +- **The harness** (`zig build replicas -Dplatform=tui -- --echo`): one authority and one replica over part A's delayed, jittered link, the authority's pty a shell played in the harness (`FakeShell`): a line editor at a prompt with pardes's marks and Tab completion, and the @@ -2885,7 +2885,7 @@ The gates: rendered otherwise than predicted; it passes at 20 seeds, Debug and ReleaseFast. `zig build replicas` passes at 20 seeds, ReleaseFast (and 4 in Debug). -- Unit tests tty (`zig build unit-test -Dplatform=tty`, its perf gate +- Unit tests tty (`zig build unit-test -Dplatform=tui`, its perf gate too), the full `core-test`, and the 113 snapshot scripts pass; the GUI build's echo tests pass (`core-test -Dplatform=gui`). @@ -2957,7 +2957,7 @@ the installed (ReleaseSafe) binaries through the suites that start a real pardes. Gates, Debug unless said: -- `core-test`, `unit-test -Dplatform=tty` (its perf gate too), `snap` +- `core-test`, `unit-test -Dplatform=tui` (its perf gate too), `snap` (113/113), `replay`, `replicas` (no divergence, no wrong delta at 30/80/207 ms), `9p-io-test`, `fs-test`, `test/daemon.py` (20 cycles), `test/daemon.py --upgrade`, `test/fs.py`: all pass. @@ -3209,7 +3209,7 @@ Gates (Debug unless said; scripts and logs in `.scratch/daemon/amort/`): - **Suites**, once at the end: `core-test` (its run beside the box measurements had the 9P failure above; again, all pass), `unit-test - -Dplatform=tty` (its perf gate, and shared-libs-check, which now refuses + -Dplatform=tui` (its perf gate, and shared-libs-check, which now refuses a second zstd too), `snap` 113 of 113, `replay` (113 scripts, 20 monkey seeds, none panicked or diverged), `replicas`, `9p-io-test`, `fs-test`, `test/daemon.py` 20 cycles (its far clients included), `--upgrade` @@ -3521,7 +3521,7 @@ Gates (Debug unless said; scripts and logs in `.scratch/daemon/guirep/`): cycles, a second window detached alone): pass, Debug and ReleaseSafe (SDL's offscreen driver). - **Suites**, once at the end (before the tests' fix and the rebase below): - `core-test -Dplatform=tty`, `unit-test -Dplatform=tty` (its perf gate), + `core-test -Dplatform=tui`, `unit-test -Dplatform=tui` (its perf gate), `snap` 113 of 113, `replay` (113 scripts, 20 monkey seeds, none panicked or diverged), `replicas`, `9p-io-test`, `fs-test`, `test/daemon.py` 20 cycles, `--window-clients`, `--upgrade` (unstamped Debug to stamped), -- cgit v1.3