diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 03:10:38 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 03:19:55 -0300 |
| commit | 8fb080c6208bccf9ef12eca630b0534312ae5fe7 (patch) | |
| tree | 8fb4b75680589cce45ef55b0ca778ff72c989465 /core/ninep/pty.zig | |
| parent | c77e5a09af27976b2375a902ecb8efa428395a0c (diff) | |
| download | pardes-8fb080c6208bccf9ef12eca630b0534312ae5fe7.tar.gz pardes-8fb080c6208bccf9ef12eca630b0534312ae5fe7.zip | |
tape: the 7 free calls the same under either terminal design on the handle, step 8a (reports/pardes-handle-69-design.md section 4): a terminal's output, its close (the poison and the refusal) read p.tape, the refusal to open one moves out of createTerminal into its two callers (newShell, newCommand: no parameter, no test changed), and the session's fonts and its shell checks (exec's Font and Shell, a 9P exec) are p.tape.site; the 3 the bytes would delete and the 11 that wait are left; the tape's bytes do not move (semantics 32640d4a722b811c unmoved, cross_replay both ways)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/ninep/pty.zig')
| -rw-r--r-- | core/ninep/pty.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ninep/pty.zig b/core/ninep/pty.zig index 26bb7661..938f3366 100644 --- a/core/ninep/pty.zig +++ b/core/ninep/pty.zig @@ -66,7 +66,7 @@ pub fn writeCtl(p: *Pardes, req: Req, id: usize) Reply { // interpreter is not: refused, and the running shell kept. const bin = pane.shell orelse p.shellBin(); var why: [320]u8 = undefined; - if (pardes.tape.site(.shell, null, @import("dev").host_io.Shell.refusal, .{ bin[0..@min(bin.len, 200)], &why })) |refused| + if (p.tape.site(.shell, null, @import("dev").host_io.Shell.refusal, .{ bin[0..@min(bin.len, 200)], &why })) |refused| return tree.failText(req.tag, E.NOENT, std.fmt.bufPrint(&p.fs.ename, "exec: {s}", .{refused[0..@min(refused.len, 300)]}) catch &p.fs.ename); // cut to ename's 320 }; if (verb(p, id, line, apply)) |why| return tree.failText(req.tag, E.INVAL, why); |
