diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 20:54:21 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-04 21:12:33 -0300 |
| commit | 0ff1fc99eb870f8a1e714a71c1a853066737c822 (patch) | |
| tree | 2c8b4720e2ed190e6f9062cfe8586c3da22aeb42 /test/record_casts.py | |
| parent | 3b082687c7da1c5d8cc52c71fdf4ddd38d860cd8 (diff) | |
| download | pardes-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/record_casts.py')
| -rw-r--r-- | test/record_casts.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/record_casts.py b/test/record_casts.py index 13893517..15f46ced 100644 --- a/test/record_casts.py +++ b/test/record_casts.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Record the documentation site's terminal casts (asciicast v2). -zig build -Dplatform=tty -Doptimize=ReleaseSafe --prefix <scratch dir> +zig build -Dplatform=tui -Doptimize=ReleaseSafe --prefix <scratch dir> python3 -B test/record_casts.py <scratch dir>/bin/pardes [cast ...] [--show] Each cast runs the tty pardes in a pty this script owns, sized 100x30 with @@ -770,8 +770,8 @@ def terminals(r): """A shell beside the notes: run, Ctrl-b, copy a line of output into the file; then git log paged through pardes - into a +Pager.""" r.step(None, until=lambda s: 'What ./hello prints' in s.text(), quiet=.4, hold=1.2) - start, end = word_at(r, 'Tty', 2) - r.sweep(1, start, end, show=.5, hold=.6, until=lambda s: 'Tty+sh' in s.text(), what='the shell') + start, end = word_at(r, 'Term', 2) + r.sweep(1, start, end, show=.5, hold=.6, until=lambda s: 'Term+sh' in s.text(), what='the shell') r.step(None, until=lambda s: s.text().count('$') >= 2, hold=.4) # Its own column, beside the file: Ctrl-b to normal, Alt-c, Ctrl-b back. r.step('\x02', hold=.3) @@ -909,7 +909,7 @@ def show(name, work, at=None): def main(): parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) - parser.add_argument('binary', type=Path, nargs='?', help='a pardes built with -Dplatform=tty') + parser.add_argument('binary', type=Path, nargs='?', help='a pardes built with -Dplatform=tui') parser.add_argument('casts', nargs='*', help='which casts (default: all): ' + ', '.join(CASTS)) parser.add_argument('--work', type=Path, default=REPO.parent / '.scratch/casts/work', help='the session home, step logs and check pictures (default %(default)s)') |
