#tui #cursive #termion #ui

cursive_buffered_backend

The buffering backend for any Cursive backend

13 releases

0.6.2 Aug 8, 2024
0.6.1 Aug 6, 2022
0.6.0 Jan 11, 2022
0.6.0-alpha.0 Aug 20, 2021
0.1.0 Dec 19, 2018

#272 in Command-line interface

Download history 562/week @ 2024-07-29 623/week @ 2024-08-05 548/week @ 2024-08-12 654/week @ 2024-08-19 675/week @ 2024-08-26 504/week @ 2024-09-02 575/week @ 2024-09-09 508/week @ 2024-09-16 647/week @ 2024-09-23 1023/week @ 2024-09-30 628/week @ 2024-10-07 645/week @ 2024-10-14 646/week @ 2024-10-21 478/week @ 2024-10-28 374/week @ 2024-11-04 409/week @ 2024-11-11

1,950 downloads per month
Used in 18 crates (14 directly)

MIT license

17KB
325 lines

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()?;

Dependencies

~7MB
~119K SLoC