summaryrefslogtreecommitdiff
path: root/term.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-02 21:41:13 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commit81992cc92743a98066ee1a9025bc74f91cf0e967 (patch)
tree12c07f68f8ad030f6c6f8a2b3415998d0a87eee7 /term.zig
parentbead9f0b78380d1428f40fdab339c1c8f88fa626 (diff)
downloadpardes-81992cc92743a98066ee1a9025bc74f91cf0e967.tar.gz
pardes-81992cc92743a98066ee1a9025bc74f91cf0e967.zip
storage and replay
Diffstat (limited to 'term.zig')
-rw-r--r--term.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/term.zig b/term.zig
index 5e472a9e..d332488e 100644
--- a/term.zig
+++ b/term.zig
@@ -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);