resize: reset cursor sgr prior to erasing screen

Reset cursor sgr to prevent erasing the screen with some unknown
background color.
This commit is contained in:
Tim Culverhouse 2024-06-01 06:52:21 -05:00
parent 7f29e9f720
commit 6b6807d9ec

View file

@ -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