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/daemon.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/daemon.py')
| -rw-r--r-- | test/daemon.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/daemon.py b/test/daemon.py index 954433a9..7db7e055 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -449,7 +449,7 @@ def clients(binary): assert b'let this client go' in ta.text(), ta.text()[-300:] # A third client, a shell: its keys wait for the session (a pty # write), its output comes back in units, the same on both sides. - nine.write(f'/pane/{pane}/exec', b'Tty\n') + nine.write(f'/pane/{pane}/exec', b'Term\n') shell = wait_for('a shell pane', lambda: next((int(row.split()[0]) for row in nine.read('/index').splitlines() if row.split()[1] == b'term'), None)) wait_for('the shell\'s prompt', lambda: b'$' in nine.read(f'/pane/{shell}/body') or b'#' in nine.read(f'/pane/{shell}/body')) @@ -522,7 +522,7 @@ def manage(binary): status = dict(line.split(maxsplit=1) for line in c.read('/status').decode().splitlines()) sessions[name] = int(status['pid']) started.append(sessions[name]) - c.write('/pane/1/exec', b'Tty\n') + c.write('/pane/1/exec', b'Term\n') wait_for(f'session {name}\'s shell', lambda: terminals(c)) shell = terminals(c)[0] wait_for(f'session {name}\'s shell answers', lambda: run(c, shell, b'true\n') == b'exit 0\n') @@ -1078,7 +1078,7 @@ def main(binary, cycles): started = [] try: term = Term() - stub = term.spawn([binary, '--tty', '--9p=work'], env) + stub = term.spawn([binary, '--tui', '--9p=work'], env) started.append(stub.pid) sock = root / 'pardes-9p-work.sock' wait_for('the session\'s 9P socket', sock.exists) @@ -1181,7 +1181,7 @@ def main(binary, cycles): term = Term() stub_pid = root / 'stub.pid' shell = term.spawn(['sh', '-c', '"$@" & echo $! > "$0"; wait; exec sleep 600', - str(stub_pid), binary, '--tty', '--9p=fresh'], env) + str(stub_pid), binary, '--tui', '--9p=fresh'], env) started.append(shell.pid) sock = root / 'pardes-9p-fresh.sock' wait_for('the second session', sock.exists) @@ -1403,7 +1403,7 @@ def install(binary, at): def upgrades(old, new): - """Upgrade (docs/next-daemon.md, phase 6): a tty session with an unsaved + """Upgrade (docs/next-daemon.md, phase 6): a tui session with an unsaved edit, a shell running `sleep 1000; echo done` and two terminals (two views) moved onto another build installed at the path it started from, the daemon with it; then a build that refuses the dump, which falls back @@ -1425,7 +1425,7 @@ def upgrades(old, new): started = [] try: term = Term() - stub = term.spawn([str(binary), '--tty', '--9p=work'], env) + stub = term.spawn([str(binary), '--tui', '--9p=work'], env) started.append(stub.pid) sock = root / 'pardes-9p-work.sock' wait_for('the session\'s 9P socket', sock.exists) @@ -1610,7 +1610,7 @@ def upgrades(old, new): time.sleep(.3) assert alive(shell_pid) and alive(daemon) term = Term() - stub = term.spawn([str(binary), '--tty', '--9p=again'], env) + stub = term.spawn([str(binary), '--tui', '--9p=again'], env) started.append(stub.pid) sock = root / 'pardes-9p-again.sock' wait_for('the next session', sock.exists) |
