#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

#271 in Command-line interface

Download history 618/week @ 2024-08-03 550/week @ 2024-08-10 637/week @ 2024-08-17 667/week @ 2024-08-24 502/week @ 2024-08-31 580/week @ 2024-09-07 537/week @ 2024-09-14 636/week @ 2024-09-21 1010/week @ 2024-09-28 638/week @ 2024-10-05 672/week @ 2024-10-12 660/week @ 2024-10-19 481/week @ 2024-10-26 369/week @ 2024-11-02 402/week @ 2024-11-09 470/week @ 2024-11-16

1,872 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
~117K SLoC