From f25a9b9660e5c4fba161891732753422f5d63549 Mon Sep 17 00:00:00 2001 From: Rylee Lyman Date: Thu, 13 Jun 2024 15:31:42 -0400 Subject: [PATCH] fix: deinit TTY to avoid stair-stepped output --- examples/xev.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/xev.zig b/examples/xev.zig index 1890f9b..262e6fb 100644 --- a/examples/xev.zig +++ b/examples/xev.zig @@ -56,6 +56,7 @@ pub fn main() !void { const alloc = gpa.allocator(); var tty = try vaxis.Tty.init(); + defer tty.deinit(); var vx = try vaxis.init(alloc, .{}); defer vx.deinit(alloc, tty.anyWriter());