summaryrefslogtreecommitdiff
path: root/src/macos.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 00:06:42 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commitc742d19d4bacbd9a91627c4859ca8cb0d11bdba7 (patch)
tree810036d05946b51dfadef508ee75f677303ba7c8 /src/macos.zig
parente4fbb97a506ca2a4b469b6e2e13ecba6e516272c (diff)
downloadpardes-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/macos.zig')
-rw-r--r--src/macos.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/macos.zig b/src/macos.zig
index 254cf2a7..3dc87e1a 100644
--- a/src/macos.zig
+++ b/src/macos.zig
@@ -340,11 +340,11 @@ fn initCore(runtime: ?*const Runtime, cols_arg: u16, rows_arg: u16) !void {
if (found.dir) |d| crash.setDir(d);
}
- pardes.TerminalImages.start(allocs.image);
+ pardes.Term.start(allocs.image);
pardes.Kind.heap = allocs.addon;
// Its addons are compiled in (no loader runs here): image and PDF panes.
opts.addons = pardes.Addon.scan();
- errdefer pardes.TerminalImages.stop();
+ errdefer pardes.Term.stop();
pardes.syntax.start(allocs.tree_sitter);
errdefer pardes.syntax.stop();
@@ -432,7 +432,7 @@ export fn pardes_deinit() void {
for (st.tag_cells) |cells| st.gpa.free(cells);
if (st.images.len > 0) st.gpa.free(st.images);
st.core.deinit();
- pardes.TerminalImages.stop();
+ pardes.Term.stop();
pardes.syntax.stop();
st.config_arena.deinit();
st.prompt_rcs.deinit();