refactor(terminal): add some debug logs for pty lifetime tracking

This commit is contained in:
CJ van den Berg 2026-02-25 21:48:49 +01:00
parent 3ad37b3b70
commit 598c2a58aa
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -316,6 +316,7 @@ const Vt = struct {
} }
self.vt.deinit(); self.vt.deinit();
self.env.deinit(); self.env.deinit();
std.log.debug("terminal: vt destroyed", .{});
} }
pub fn resize(self: *@This(), pos: Widget.Box) void { pub fn resize(self: *@This(), pos: Widget.Box) void {
@ -366,6 +367,7 @@ const pty = struct {
self.parser.buf.deinit(); self.parser.buf.deinit();
self.parent.deinit(); self.parent.deinit();
self.allocator.destroy(self); self.allocator.destroy(self);
std.log.debug("terminal: pty destroyed", .{});
} }
fn start(self: *@This()) tp.result { fn start(self: *@This()) tp.result {