fix: add workaround for conpty ul color escape sequence parser bug

closes #191
This commit is contained in:
CJ van den Berg 2025-02-24 18:20:47 +01:00
parent db0bf4571e
commit 9145637134
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 3 additions and 2 deletions

View file

@ -91,6 +91,7 @@ pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace, ret_
pub fn run(self: *Self) !void {
self.vx.sgr = .legacy;
self.vx.conpty_hacks = true;
panic_cleanup = .{ .allocator = self.allocator, .tty = &self.tty, .vx = &self.vx };
if (!self.no_alternate) try self.vx.enterAltScreen(self.tty.anyWriter());