11 releases (7 breaking)
0.7.1 | Nov 24, 2022 |
---|---|
0.6.1 | Nov 24, 2022 |
#780 in Command-line interface
29KB
534 lines
Yet Another Curses-Like Library
yacll
is a curses-like library, built on the crossterm
library for compatibility.
Basically, it's intended as a more rustic and safe replacement for other libraries like ncurses
and pancurses
.
yacll
is still currently in development! If you'd like to contribute, please refer to the CONTRIBUTING.md file (which will eventually be made.)
Installation
$ cargo add yacll
lib.rs
:
A library designed to provide a curses alternative.
Explaining things is hard, so here's an example:
use yacll::Yogurt;
fn main() -> yacll::Result<()> {
let mut y = Yogurt::new();
// does not add newline
y.print("Hello, world!\n")?;
// flush the buffer (print just queues things for execution)
y.flush()?;
Ok(())
}
// try running `$ cargo run --example=quickstart` if you have the repository cloned!
For serializing/deserializing of some structs, the serde
feature can be enabled.
Dependencies
~2–13MB
~93K SLoC