diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-30 01:51:44 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-30 03:13:15 -0300 |
| commit | 6118ad214bb74744e7b38004b34e4487a6635be1 (patch) | |
| tree | 16c5f4c3d0e3df31d7a7ffab2a9726f619be43fd /src/walk.zig | |
| parent | fdf74e199de7d0fc648f912875323f3dc920ffc2 (diff) | |
| download | pardes-6118ad214bb74744e7b38004b34e4487a6635be1.tar.gz pardes-6118ad214bb74744e7b38004b34e4487a6635be1.zip | |
replica clients' terminals as screen state: the session's Peers keep a Screens (rterm's), a peer each: the rows a pump's steps read before its unit, the deltas after it, and before each client input's step, the rows it read before its unit; a joiner's terminals afresh after its dump; acks, rows asked and resets from the client (0x04) taken at the boundary; units carry no pty bytes and a word of digest
The client applies a delta or rows (0x06) in stream order and asks for the rows it shows and lacks after each frame; its dump's emulators are loaded on the C heap (walk.zig `.alloc` of a pane's `terminal`, dump.zig `terminal_gpa`), as `terminal.create` makes a screen replica's. Its load checked under its own tape (no emulator in the digest).
tty.zig: with replica clients, a wait takes one step of a person's input and none after a pty's output (`split`): the next is held for the next wait, so a step reads the terminals as the deltas after each unit bring them.
Screens: `dropPeer` (clients come and go), its numbers reused.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/walk.zig')
| -rw-r--r-- | src/walk.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/walk.zig b/src/walk.zig index 33247d42..2dc0a721 100644 --- a/src/walk.zig +++ b/src/walk.zig @@ -966,6 +966,7 @@ pub const DecodeError = error{ EndOfDump, BadDump, Incompatible, OutOfMemory }; pub const Allocators = struct { image: ?std.mem.Allocator = null, pdf: ?std.mem.Allocator = null, + terminal: ?std.mem.Allocator = null, }; fn allocOf(comptime T: type, comptime name: []const u8) ?[]const u8 { |
