Crates.io | cursive_buffered_backend-git-branchless |
lib.rs | cursive_buffered_backend-git-branchless |
version | 0.5.1-pre.2 |
source | src |
created_at | 2021-08-20 03:14:17.551008 |
updated_at | 2021-08-20 03:59:53.475601 |
description | The buffering backend for any Cursive backend |
homepage | |
repository | https://github.com/agavrilov/cursive_buffered_backend |
max_upload_size | |
id | 439844 |
size | 18,897 |
The buffering backend for any Cursive backend. Mainly it is created to address a flickering issue with Termion backend.
Inspired by the comment on the similar issue on Termion itself.
let mut app = Cursive::try_new(|| {
let crossterm_backend = backend::crossterm::Backend::init().unwrap();
let buffered_backend = cursive_buffered_backend::BufferedBackend::new(crossterm_backend);
Ok(Box::new(buffered_backend))
});