cursive_buffered_backend

Crates.iocursive_buffered_backend
lib.rscursive_buffered_backend
version0.6.2
sourcesrc
created_at2018-12-19 00:24:09.996984
updated_at2024-08-08 19:21:18.986085
descriptionThe buffering backend for any Cursive backend
homepage
repositoryhttps://github.com/agavrilov/cursive_buffered_backend
max_upload_size
id102616
size20,086
Alexander Gavrilov (agavrilov)

documentation

README

cursive_buffered_backend

crates.io Build Status MIT licensed

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.

Usage

let backend_init = || -> std::io::Result<Box<dyn cursive::backend::Backend>> {
    let backend = cursive::backends::termion::Backend::init()?;
    let buffered_backend = cursive_buffered_backend::BufferedBackend::new(backend);
    Ok(Box::new(buffered_backend))
};

let mut app = Cursive::new();
app.try_run_with(backend_init).ok()?;
Commit count: 83

cargo fmt