Add Terminal::mark_dirty

This commit is contained in:
Joscha 2024-11-06 22:16:47 +01:00
parent b1d7221bae
commit 3a5ce3832b
2 changed files with 9 additions and 0 deletions

View file

@ -193,6 +193,12 @@ impl Terminal {
&mut self.frame.widthdb
}
/// Mark the terminal as dirty, forcing a full redraw whenever any variant
/// of [`Self::present`] is called.
pub fn mark_dirty(&mut self) {
self.full_redraw = true;
}
/// Display the current frame on the screen and prepare the next frame.
///
/// Before drawing and presenting a frame, [`Self::measure_widths`] and