summaryrefslogtreecommitdiff
path: root/src/tape.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 18:11:57 -0300
committerGabriel Schneider <[email protected]>2026-10-30 19:12:48 -0300
commitef0fb2f9614bd6ad35991022d7be1cb40ca156ae (patch)
tree0f814fd7832e875a680bb5cc6d024fb8facfa301 /src/tape.zig
parent782b1ef2e40b83e115c460f55e31c5c6bde2b62f (diff)
downloadpardes-ef0fb2f9614bd6ad35991022d7be1cb40ca156ae.tar.gz
pardes-ef0fb2f9614bd6ad35991022d7be1cb40ca156ae.zip
terminal: an authority with screen-state replicas sizes a terminal after the step's unit, not inside it (resize_to, made by Peers.unit, null from `create` on): a client typing at another size than the last typist read history rows its replay held as holes, and the rows the session sent for them came in the new grid's numbering, which the replica cannot take, so its replay read blank text (the soak's local80 cell: jumps, njumps, jcur, pane 1.body at a b; fixer 2's H18, pane N.ovl); test/replicas.zig sizes them after its fill too; an in-process test reads the history in the step that resizes, with the session's order of flush, fill and unit, and another makes a terminal from 0xAA memory and finds no size waiting
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/tape.zig')
-rw-r--r--src/tape.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tape.zig b/src/tape.zig
index 9152bcb0..1ca064bc 100644
--- a/src/tape.zig
+++ b/src/tape.zig
@@ -990,6 +990,11 @@ pub fn screenReplica() bool {
return if (on) |t| t.screen_state and (t.replay or t.speculating) else false;
}
+/// An authority recording for screen-state replicas.
+pub fn screenAuthority() bool {
+ return if (on) |t| t.screen_state and !t.replay and !t.speculating else false;
+}
+
/// What a speculation reached is the authority's: the input is undone and
/// waits for the authority's order.
pub fn poison() void {