summaryrefslogtreecommitdiff
path: root/core/panes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-22 03:03:55 -0300
committerGabriel Schneider <[email protected]>2026-11-22 10:31:04 -0300
commit9158de5d50831e115e14e2ed502300ee8c1d9930 (patch)
tree2b5e60569307e02d82b19bd419279392a6da257b /core/panes.zig
parent70c9e3fbf9cdc7139b4da0142f3a44741a7e1491 (diff)
downloadpardes-9158de5d50831e115e14e2ed502300ee8c1d9930.tar.gz
pardes-9158de5d50831e115e14e2ed502300ee8c1d9930.zip
term: screen_state.zig deleted, and the terminal module's side of the delta road (the old road's deletion, piece 5 of 8): core/term/screen_state.zig (1,213 lines: the encoder, tracks, peers' flights, a replica's apply and holes, its own soak and four tests) goes whole; core/term/terminal.zig loses `encode`/`encodeRows`/`encoder`/`encoderFree`/`track`/`untrack`/`replica`/`replicaFree`/`replicaTop`/`missing`/`apply`/`applyRows`/`shown`/`blank`, `takeMarks` (`marksOf` stays, private: the tests compare two terminals by it), the State's `changes` (a version's counter for the tracks), `read` with `markRead`/`wasRead`/`clearRead` (the rows a step read, for the fills), and `resize_to` with `resizeDeferred` and `resize`'s `later` (screen state's authority sized its terminals after a step's unit); abi/term.zig loses the `Encoder`/`Track`/`Replica` handles, `flight_bound`, `Peer`, `Applied` and those entries of `Ops` (and `dumpScreen`, which nothing in the core called); core/Term.zig its wrappers; core/term/term.zig its ops, its handle map and its `screen_state` export; core/panes.zig its `resizeDeferred` and resizes now (its later screen-state lines go in piece 6); core/edit.zig its `markRead`; the cell-for-cell dump the soak compares a client's terminal with its session's by moves to terminal.zig (`dumpScreen`, over the emulator), the soak's three streams (a shell's, a full-screen program's, `yes`) into test/replicas.zig, their one user; test/terminal.zig loses `a replica's terminal pane draws as its authority's does` (a delta's) and `a terminal made fresh has no size waiting` (`resize_to`'s); core-test 911/1068 (157 skipped), shell-test 1110/1113, term-test 15/15, pane-test 181/182 (again after the machines reboot, on a wiped cache), the soaks small run and `--echo` rc 0
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/panes.zig')
-rw-r--r--core/panes.zig12
1 files changed, 1 insertions, 11 deletions
diff --git a/core/panes.zig b/core/panes.zig
index 289de70f..d58bf30b 100644
--- a/core/panes.zig
+++ b/core/panes.zig
@@ -1001,10 +1001,7 @@ pub const Pane = struct {
};
if (tape.screenReplica()) return;
if (tape.speculating()) return tape.touchTerminal();
- // A client typing at another size than the last typist's read
- // history rows its replay held as holes, and the rows came
- // renumbered (2026-10-30): the authority's waits for the unit.
- Term.resize(state, cols, rows, tape.screenAuthority());
+ Term.resize(state, cols, rows);
}
/// The rows its terminal's top is passed over by in a view whose rect
@@ -1176,13 +1173,6 @@ fn written(s: *Term.State) bool {
return s.written;
}
-/// The sizes steps gave terminals (`Pane.resizeGrid`), made: between
-/// units, on an authority with screen-state replicas (replica.Peers.unit).
-pub fn resizeDeferred(p: *Pardes) void {
- for (p.panes) |slot| if (slot) |pane| if (pane.terminal) |state| if (Term.resizeDeferred(state))
- p.shell_rows.markStale(pane);
-}
-
/// A pane with nothing in it yet, `cols` by `rows`: what a file, a
/// directory, a kind's pane or a terminal is made from.
pub fn createDoc(gpa: std.mem.Allocator, cols: u16, rows: u16) !*Pane {