diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 00:06:42 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | c742d19d4bacbd9a91627c4859ca8cb0d11bdba7 (patch) | |
| tree | 810036d05946b51dfadef508ee75f677303ba7c8 /src/Core.zig | |
| parent | e4fbb97a506ca2a4b469b6e2e13ecba6e516272c (diff) | |
| download | pardes-c742d19d4bacbd9a91627c4859ca8cb0d11bdba7.tar.gz pardes-c742d19d4bacbd9a91627c4859ca8cb0d11bdba7.zip | |
Term: the terminal as the core calls it, src/Term.zig, its lifecycle first (docs/next-terminal.md, Phase 0): Term.open makes an emulator and Term.close frees it, Term.due says when its next kitty frame is due, Term.revive resets a restored terminal's modes under its banner, Term.start and Term.stop run the PNG resize workers; the pane half of each is the core's: panes.createDoc and panes.createTerminal make the pane (the speculation guard there), emulatorGpa and emulator_gpa are the core's choice of allocator, teardownPane closes the emulator, dump.zig's revivePane resets what the old shell was and ensureKind opens an emulator straight into the pane; tape.authorityOnly is the one guard Kind.zig and the terminal both had a copy of; nothing else changes
Diffstat (limited to 'src/Core.zig')
| -rw-r--r-- | src/Core.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Core.zig b/src/Core.zig index 40dabda3..1f3e9283 100644 --- a/src/Core.zig +++ b/src/Core.zig @@ -1988,7 +1988,7 @@ pub fn nextWake(p: *const Pardes) ?u64 { // A terminal's kitty animation, at its next frame. Only a time still // ahead counts: a pane not drawn keeps the last one it was given, // and a past one would wake every frame for nothing. - for (p.panes) |slot| if (slot) |pane| if (pardes.panes.terminal.animationDueMs(pane)) |due_ms| { + for (p.panes) |slot| if (slot) |pane| if (pane.terminal) |state| if (pardes.Term.due(state)) |due_ms| { const due = due_ms *| std.time.ns_per_ms; if (due > p.clock.stepped_ns) { const wait = @max(1, (due - p.clock.stepped_ns + frame_ns - 1) / frame_ns); |
