Expose WidthDb from Terminal
This commit is contained in:
parent
6ed47ad916
commit
f48901f543
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue