summaryrefslogtreecommitdiff
path: root/core/Core.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-23 02:23:34 -0300
committerGabriel Schneider <[email protected]>2026-11-23 02:23:34 -0300
commit1ebae0db0a185455b2a03f22f5106113c6407a2f (patch)
treedb0e473c2c060e6bf7d4f4d169ffff11178056c3 /core/Core.zig
parent5393ce743d7848d26e60fd7d4d27a4119272df9f (diff)
parentde0e85daa8ad0bf9618734e16568823aa2b61a54 (diff)
downloadpardes-1ebae0db0a185455b2a03f22f5106113c6407a2f.tar.gz
pardes-1ebae0db0a185455b2a03f22f5106113c6407a2f.zip
integration (a base for the next rounds, not yet the gathered line): the one decision on the tree to install: pardes-merge60 (`krovvoum`: the viewport, a client's way back at an Upgrade, the pair's round 12, the lanes on the glide; in its whole gate) and pardes-one-decision (`ltvyvwru` on `wllwukuk` on `trmpwtso`, on pardes-viewport: one count of an emulator's writes in the core (`Pardes.outside`), copied, digested and dumped, which `Replica.confirm` reads once a unit where four spread checks stood; the rollback copy walks every type unless it declares `outside_copy`: the Changes layer's heap was not walked and was freed twice); no conflict; core-test 919/1083 (164 skipped), shell-test 1125/1128 (2026-11-23)
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Core.zig')
-rw-r--r--core/Core.zig8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/Core.zig b/core/Core.zig
index a35cea8e..2c6567ed 100644
--- a/core/Core.zig
+++ b/core/Core.zig
@@ -258,6 +258,10 @@ n_look_src: usize = 0,
look_walk_owner: ?u32 = null,
/// hands out Pane.serial; monotonic, never reused
next_serial: u32 = 0,
+/// The writes of its terminals' emulators, which no rollback copy holds
+/// (Term.Outside): digested, dumped and copied as any field, so the same on
+/// every side; the replica engine's one question of a unit reads it.
+outside: pardes.Term.Outside = .{},
/// The column whose tag the running command came from, while it runs:
/// the column acme's commands take from their Text's col.
exec_column: ?usize = null,
@@ -1908,7 +1912,7 @@ pub fn sync(p: *Pardes) void {
// What the terminal answers its program (a cursor report, its
// attributes) goes as typed bytes go: behind whatever is still
// queued for its pty, never ahead of it nor dropped.
- if (pane.terminal) |state| p.emitWrite(id, pardes.Term.replies(state));
+ if (pane.terminal) |state| p.emitWrite(id, pardes.Term.replies(&p.outside, state));
const r = v.rects[id];
// The session's part of the pane's view geometry (File.geometry),
// and its context declarations.
@@ -1974,7 +1978,7 @@ pub fn sync(p: *Pardes) void {
// doc panes have no pty/emulator grid to reflow; just record
// the size so bodyText renders the right number of rows
if (pane.isTerminal()) {
- pane.resizeGrid(p.live, cols, rows);
+ pane.resizeGrid(p, cols, rows);
p.shell_rows.markStale(pane); // reflow moved every row
p.emit(.{ .resize_pty = .{ .pane = .at(id), .cols = cols, .rows = rows } });
pane.fs.winsize = null;