From 0feac5d6cfd8a97969ef63ac9a1d090f890f25a4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 28 Aug 2023 11:43:28 -0700 Subject: [PATCH] termio/exec: disable synchronized output mode on resize --- src/termio/Exec.zig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index 384029a5d..f7d75a21d 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -293,6 +293,13 @@ pub fn resize( // Update our pixel sizes self.terminal.width_px = padded_size.width; self.terminal.height_px = padded_size.height; + + // Disable synchronized output mode so that we show changes + // immediately for a resize. This is allowed by the spec. + self.terminal.modes.set(.synchronized_output, false); + + // Wake up our renderer so any changes will be shown asap + self.renderer_wakeup.notify() catch {}; } }