Skip to content

agavrilov/cursive_buffered_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The buffering backend for any Cursive backend

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages