diff options
Diffstat (limited to 'core/Term.zig')
| -rw-r--r-- | core/Term.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/Term.zig b/core/Term.zig index fde36420..5025ba2b 100644 --- a/core/Term.zig +++ b/core/Term.zig @@ -123,6 +123,14 @@ pub fn close(s: *State, _: std.mem.Allocator) void { own.destroy(s); } +/// Its emulator made again from its own snapshot, where it is: at a join +/// every side does it, so that all hold the same pages (ghostty prunes its +/// history a page at a time, and a snapshot does not say how its rows were +/// cut into pages). The snapshot's hash, which every side compares. +pub fn reload(s: *State) !u64 { + return the().reload(s.impl); +} + /// When its next kitty animation frame is due (ms on the core's clock), as /// its last drawn frame left it; null when nothing plays. pub fn due(s: *const State) ?u64 { |
