From 62ee6d1b5871f0908d9c3abe22fcaca9f47c47c6 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Sat, 3 Feb 2024 10:02:04 -0600 Subject: [PATCH] notify, setTitle: flush the buffer Flush the buffer when calling notify and setTitle --- src/vaxis.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vaxis.zig b/src/vaxis.zig index 1142e3f..5a39231 100644 --- a/src/vaxis.zig +++ b/src/vaxis.zig @@ -535,6 +535,7 @@ pub fn Vaxis(comptime T: type) type { .{body}, ); } + try self.tty.?.flush(); } /// sets the window title @@ -545,6 +546,7 @@ pub fn Vaxis(comptime T: type) type { ctlseqs.osc2_set_title, .{title}, ); + try self.tty.?.flush(); } // turn bracketed paste on or off. An event will be sent at the