vaxis: apply quirk for vhs

Apply a quirk when in a vhs recording session. Vaxis will automatically
use `wcwidth` and no kitty keyboard
This commit is contained in:
Tim Culverhouse 2024-05-09 20:21:44 -05:00
parent 8819e192cc
commit 972129a764

View file

@ -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")) |_|