summaryrefslogtreecommitdiff
path: root/core/Core.zig
diff options
context:
space:
mode:
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;