Expose WidthDb from Terminal

This commit is contained in:
Joscha 2022-09-26 17:21:48 +02:00
parent 6ed47ad916
commit f48901f543

View file

@ -14,6 +14,7 @@ use crossterm::{ExecutableCommand, QueueableCommand};
use crate::buffer::{Buffer, Size};
use crate::frame::Frame;
use crate::widthdb::WidthDb;
pub struct Terminal {
/// Render target.
@ -119,6 +120,10 @@ impl Terminal {
&mut self.frame
}
pub fn widthdb(&mut self) -> &mut WidthDb {
&mut self.frame.widthdb
}
/// Display the current frame on the screen and prepare the next frame.
/// Returns `true` if an immediate redraw is required.
///