Add Terminal::mark_dirty
This commit is contained in:
parent
b1d7221bae
commit
3a5ce3832b
2 changed files with 9 additions and 0 deletions
|
|
@ -13,6 +13,9 @@ Procedure when bumping the version number:
|
|||
|
||||
## Unreleased
|
||||
|
||||
### Added
|
||||
- `Terminal::mark_dirty`
|
||||
|
||||
## v0.2.3 - 2024-04-25
|
||||
|
||||
### Fixed
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue