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
This commit is contained in:
Tim Culverhouse
2023-09-27 20:51:31 -05:00
parent 3188056bb2
commit 0231c61a50

View File

@ -1680,6 +1680,7 @@ const StreamHandler = struct {
self: *StreamHandler, self: *StreamHandler,
) !void { ) !void {
self.terminal.fullReset(self.alloc); self.terminal.fullReset(self.alloc);
try self.setMouseShape(.default);
} }
pub fn queryKittyKeyboard(self: *StreamHandler) !void { pub fn queryKittyKeyboard(self: *StreamHandler) !void {