#termion #cursive #tui #back-end #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

#210 in Command-line interface

Download history 807/week @ 2024-07-18 658/week @ 2024-07-25 485/week @ 2024-08-01 611/week @ 2024-08-08 584/week @ 2024-08-15 702/week @ 2024-08-22 541/week @ 2024-08-29 575/week @ 2024-09-05 549/week @ 2024-09-12 630/week @ 2024-09-19 894/week @ 2024-09-26 753/week @ 2024-10-03 643/week @ 2024-10-10 665/week @ 2024-10-17 557/week @ 2024-10-24 382/week @ 2024-10-31

2,385 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
~118K SLoC