thing-tui: live terminal host (cut 8b) #26
Loading…
Reference in a new issue
No description provided.
Delete branch "hands/thing2-tui-host"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Thing 2.0 cut 8b (
thing2:cut_spec:cut-tui-host.r2), the first live TUI surface.Terminal<W>: guard (raw mode, alternate screen, hidden cursor, mouse, focus, bracketed paste with Unsupported tolerated) restored on Drop and by a chained panic hook;draw(&[Op])writes one synchronized update per frame, truecolor, nothing for no ops.translate(&Event) -> Vec<InputEvent>: pure, Key-then-Text, Release dropped, cell-centre pointer, Lines wheel.examples/fixture.rs: the reference host (the loop and the clock are the host's);cargo run -p thing-tui --example fixture -- f01-swarm-dashboard, q or Ctrl+C quits.Tests: workspace 370 green on the verify image; thing-tui also green natively on Windows. The example was driven through a pty on Yggdrasil (enter, first frame, idle, resize, click, q, Ctrl+C, termios restored). cargo-mutants over the new files: 56 tested, 42 caught, 12 unviable, 2 survived (an equivalent
|/^on distinct flags, andinstall_panic_hookbody, which needs a real terminal).Core does not route input yet, so a click or scroll reaches
frameand changes nothing.🤖 Generated with Claude Code