diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-21 17:31:13 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-21 20:57:35 -0300 |
| commit | 40a24ca96be07778dfac7c789d936c732c0cc567 (patch) | |
| tree | c484b4cd32d191ad2a421fd8d77fb76491efc33c /test/process.zig | |
| parent | 8c2c07bb4b991fde28b9af6207c7eb7418540130 (diff) | |
| download | pardes-40a24ca96be07778dfac7c789d936c732c0cc567.tar.gz pardes-40a24ca96be07778dfac7c789d936c732c0cc567.zip | |
pair: PARDES_TERM_BYTES (a working name) puts a session and its clients on the terminals' second road, the pty's bytes in the units to each client's own emulator (`Peers.bytes`), which only the soak could take (`--bytes`): the session's `Peers` is made with `.bytes` set (runtime/session.zig), every joined replica, a dump's or a pair's own boot, is turned to its own emulators as the soak turns its clients (core/replica.zig `takeJoined`: `screen_state` false, no predicted echo), and the process harness keeps the variable in a case's environment as it keeps PARDES_PAIR (test/process.zig `Child`); a client started without it against a session with it diverges: for the corpus through a pair's client window, not for a user (the switch for real clients is the terminals' line's); with it the corpus as a pair (PARDES_PAIR, a client window) is byte-identical to tree3's through frame 57, the kitty image in a terminal's pane (frame 50) included, where screen state diverges the client; frames 58-59 (WindowOpacity) differ and frame 61 (Font) never idles: only the own window applies or answers either (dev/gui/gui.zig `pollFrame`), a client window never does, and a window pair's session is the tui binary beside it; core/root.zig's machine_lines counts replica.zig's new getenv (76); core-test 896/1056, shell-test 1098/1101
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/process.zig')
| -rw-r--r-- | test/process.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/process.zig b/test/process.zig index 791a5b8e..b16c50ff 100644 --- a/test/process.zig +++ b/test/process.zig @@ -945,8 +945,9 @@ pub const Child = struct { while (environ[i]) |kv| { const entry = std.mem.span(kv); const eq = std.mem.indexOfScalar(u8, entry, '=') orelse entry.len; - // PARDES_PAIR kept: the suite run as pairs (main.zig `pair`). - if ((std.mem.startsWith(u8, entry, "PARDES_") and !std.mem.startsWith(u8, entry, "PARDES_PAIR=")) or std.mem.indexOf(u8, entry[0..eq], "PAGER") != null) { + // PARDES_PAIR kept: the suite run as pairs (main.zig `pair`); + // PARDES_TERM_BYTES, their terminals by the pty's bytes. + if ((std.mem.startsWith(u8, entry, "PARDES_") and !std.mem.startsWith(u8, entry, "PARDES_PAIR=") and !std.mem.startsWith(u8, entry, "PARDES_TERM_BYTES=")) or std.mem.indexOf(u8, entry[0..eq], "PAGER") != null) { var name: [256]u8 = undefined; const n = std.fmt.bufPrintSentinel(&name, "{s}", .{entry[0..@min(eq, 255)]}, 0) catch _exit(126); _ = unsetenv(n); |
