From 972129a764910c033042cfc50732002af62a0f83 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Thu, 9 May 2024 20:21:44 -0500 Subject: [PATCH] vaxis: apply quirk for vhs Apply a quirk when in a vhs recording session. Vaxis will automatically use `wcwidth` and no kitty keyboard --- src/Vaxis.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Vaxis.zig b/src/Vaxis.zig index 4e7a840..f6539ac 100644 --- a/src/Vaxis.zig +++ b/src/Vaxis.zig @@ -198,6 +198,10 @@ pub fn queryTerminal(self: *Vaxis) !void { // Apply any environment variables if (std.posix.getenv("ASCIINEMA_REC")) |_| self.sgr = .legacy; + if (std.posix.getenv("VHS_RECORD")) |_| { + self.caps.unicode = .wcwidth; + self.caps.kitty_keyboard = false; + } if (std.posix.getenv("VAXIS_FORCE_LEGACY_SGR")) |_| self.sgr = .legacy; if (std.posix.getenv("VAXIS_FORCE_WCWIDTH")) |_|