diff --git a/src/terminal.rs b/src/terminal.rs index 9feca31..878a49a 100644 --- a/src/terminal.rs +++ b/src/terminal.rs @@ -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. ///