diff --git a/termwiz/src/terminal/buffered.rs b/termwiz/src/terminal/buffered.rs index 66f0c83e7..d7bdac554 100644 --- a/termwiz/src/terminal/buffered.rs +++ b/termwiz/src/terminal/buffered.rs @@ -38,6 +38,11 @@ impl BufferedTerminal { &mut self.terminal } + /// Get a reference to the underlying terminal instance + pub fn terminal_ref(&self) -> &T { + &self.terminal + } + /// Compute the set of changes needed to update the screen to /// match the current contents of the embedded `Surface` and /// send them to the `Terminal`.