From 0231c61a5047c3e2966d94f6ffcbc69fbf1ddf57 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Wed, 27 Sep 2023 20:51:31 -0500 Subject: [PATCH] termio: reset mouse shape on terminal reset Reset the mouse shape to `.default` when a full reset is done on the terminal. Prevents the terminal from appearing to be in a persistent hang --- src/termio/Exec.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index a3df264d2..1864e4d7a 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -1680,6 +1680,7 @@ const StreamHandler = struct { self: *StreamHandler, ) !void { self.terminal.fullReset(self.alloc); + try self.setMouseShape(.default); } pub fn queryKittyKeyboard(self: *StreamHandler) !void {