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:
parent
8819e192cc
commit
972129a764
1 changed files with 4 additions and 0 deletions
|
@ -198,6 +198,10 @@ pub fn queryTerminal(self: *Vaxis) !void {
|
||||||
// Apply any environment variables
|
// Apply any environment variables
|
||||||
if (std.posix.getenv("ASCIINEMA_REC")) |_|
|
if (std.posix.getenv("ASCIINEMA_REC")) |_|
|
||||||
self.sgr = .legacy;
|
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")) |_|
|
if (std.posix.getenv("VAXIS_FORCE_LEGACY_SGR")) |_|
|
||||||
self.sgr = .legacy;
|
self.sgr = .legacy;
|
||||||
if (std.posix.getenv("VAXIS_FORCE_WCWIDTH")) |_|
|
if (std.posix.getenv("VAXIS_FORCE_WCWIDTH")) |_|
|
||||||
|
|
Loading…
Reference in a new issue