diff --git a/examples/nvim.zig b/examples/nvim.zig index f2b4112..f74fc15 100644 --- a/examples/nvim.zig +++ b/examples/nvim.zig @@ -33,7 +33,7 @@ pub fn main() !void { defer loop.stop(); // Optionally enter the alternate screen - try vx.enterAltScreen(); + // try vx.enterAltScreen(); var nvim = try vaxis.widgets.nvim.Nvim(Event).init(alloc, &loop); try nvim.spawn(); diff --git a/src/Vaxis.zig b/src/Vaxis.zig index 7130f5a..2554fcf 100644 --- a/src/Vaxis.zig +++ b/src/Vaxis.zig @@ -251,7 +251,8 @@ pub fn render(self: *Vaxis) !void { } = .{}; // Clear all images - _ = try tty.write(ctlseqs.kitty_graphics_clear); + if (self.caps.kitty_graphics) + _ = try tty.write(ctlseqs.kitty_graphics_clear); var i: usize = 0; while (i < self.screen.buf.len) {