Function cursive_extras::buffered_backend_root
source · pub fn buffered_backend_root() -> CursiveRunnable
Expand description
Creates a termion-based buffered backend cursive root using the cursive_buffered_backend
crate
This is meant to be used with the ImageView
view to avoid visual glitches and can also be used
if the termion backend on its own causes screen flickering
This function panics if the backend can’t be created
Example:
//let mut root = cursive::default(); // use the line below instead
let mut root = cursive_extras::buffered_backend_root();
root.add_layer(
Dialog::around(TextView::new("Yes"))
.title("Example")
.button("Quit", |r| r.quit())
);
root.run();