summaryrefslogtreecommitdiff
path: root/test/ui_review.py
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 20:54:21 -0300
committerGabriel Schneider <[email protected]>2026-11-04 21:12:33 -0300
commit0ff1fc99eb870f8a1e714a71c1a853066737c822 (patch)
tree2c8b4720e2ed190e6f9062cfe8586c3da22aeb42 /test/ui_review.py
parent3b082687c7da1c5d8cc52c71fdf4ddd38d860cd8 (diff)
downloadpardes-0ff1fc99eb870f8a1e714a71c1a853066737c822.tar.gz
pardes-0ff1fc99eb870f8a1e714a71c1a853066737c822.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/ui_review.py')
-rw-r--r--test/ui_review.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ui_review.py b/test/ui_review.py
index a1cdcdeb..3232c519 100644
--- a/test/ui_review.py
+++ b/test/ui_review.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""Capture a read-only Agave review in an isolated SDL or TTY session.
+"""Capture a read-only Agave review in an isolated SDL or TUI session.
python3 test/ui_review.py zig-out/bin/pardes-gui /tmp/pardes-review \\
--project /path/to/agave --theme orchard
@@ -36,7 +36,7 @@ def command(client, serial, text):
"""Execute a temporary tag command without changing source contents."""
tag = f'/pane/{serial}/tag'
before = client.read(tag).rstrip(b'\n')
- tail_start = before.index(b'Save Tty Del')
+ tail_start = before.index(b'Save Term Del')
while tail_start and before[tail_start - 1:tail_start] == b' ':
tail_start -= 1
client.write(tag, b' ' + text.encode())
@@ -120,10 +120,10 @@ def run(args):
if grep_pane:
(root / 'grep-results.txt').write_bytes(client.read(f'/pane/{grep_pane}/body'))
capture(client, root, '03-grep', not args.tty)
- command(client, source, 'Tty')
+ command(client, source, 'Term')
terminal = require(wait_for(lambda: next((serial for serial in panes(client)
if 'pty' in client.list(f'/pane/{serial}')), None)),
- 'Tty did not create a terminal')
+ 'Term did not create a terminal')
if terminal:
client.write(f'/pane/{terminal}/pty/data', b"printf '\\033[1;36mAgave workspace\\033[0m\\n'; pwd; printf '\\033[32mRead-only UI review ready\\033[0m\\n'\r")
require(wait_for(lambda: b'\nRead-only UI review ready\n' in