diff options
| author | Gabriel Schneider <[email protected]> | 2026-07-02 21:41:13 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-01 15:02:07 -0300 |
| commit | 81992cc92743a98066ee1a9025bc74f91cf0e967 (patch) | |
| tree | 12c07f68f8ad030f6c6f8a2b3415998d0a87eee7 /term.zig | |
| parent | bead9f0b78380d1428f40fdab339c1c8f88fa626 (diff) | |
| download | pardes-81992cc92743a98066ee1a9025bc74f91cf0e967.tar.gz pardes-81992cc92743a98066ee1a9025bc74f91cf0e967.zip | |
storage and replay
Diffstat (limited to 'term.zig')
| -rw-r--r-- | term.zig | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -114,6 +114,10 @@ greet: bool = false, cols: u16, rows: u16, +/// Raw bytes read from the pty and fed into ghostty. Dump/replay uses this as the +/// backend-neutral terminal recording instead of serialized rendered cells. +tty_stream: std.ArrayList(u8) = .empty, + /// vertical weight within the column (siblings split the column height by this). vweight: f32 = 1, @@ -186,6 +190,7 @@ pub fn deinit(self: *Term, io: std.Io, gpa: std.mem.Allocator) void { _ = self.reader.cancel(io) catch {}; self.pty.close(io); } + self.tty_stream.deinit(gpa); self.ed_undo.deinit(gpa); self.ed_redo.deinit(gpa); self.tag_tail.deinit(gpa); |
