summaryrefslogtreecommitdiff
path: root/term.zig
diff options
context:
space:
mode:
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);