mirror of
https://github.com/ratatui-org/ratatui
synced 2025-02-16 22:18:51 +00:00
Add the possibility to provide a RustBox instance at backend initialization
This commit is contained in:
parent
4bb2b8eb24
commit
b30fede80c
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,10 @@ impl RustboxBackend {
|
|||
Ok(RustboxBackend { rustbox: rustbox })
|
||||
}
|
||||
|
||||
pub fn with_rustbox(instance: rustbox::RustBox) -> RustboxBackend {
|
||||
RustboxBackend { rustbox: instance }
|
||||
}
|
||||
|
||||
pub fn rustbox(&self) -> &rustbox::RustBox {
|
||||
&self.rustbox
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue