From 6b6807d9ec68f8fcefdacd24d4dabc0dd5ed001d Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Sat, 1 Jun 2024 06:52:21 -0500 Subject: [PATCH] resize: reset cursor sgr prior to erasing screen Reset cursor sgr to prevent erasing the screen with some unknown background color. --- src/Vaxis.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Vaxis.zig b/src/Vaxis.zig index ecb253c..73ae831 100644 --- a/src/Vaxis.zig +++ b/src/Vaxis.zig @@ -181,7 +181,7 @@ pub fn resize( try tty.writeAll(ctlseqs.ri); } } - try tty.writeAll(ctlseqs.erase_below_cursor); + try tty.writeAll(ctlseqs.sgr_reset ++ ctlseqs.erase_below_cursor); } /// returns a Window comprising of the entire terminal screen