11 releases (7 breaking)

0.7.1 Nov 24, 2022
0.6.1 Nov 24, 2022

#484 in Command-line interface

Download history 7/week @ 2023-10-29 1/week @ 2023-11-12 12/week @ 2023-11-19 35/week @ 2023-11-26 11/week @ 2023-12-03 11/week @ 2023-12-17 22/week @ 2023-12-24 11/week @ 2024-01-07 1/week @ 2024-01-14 23/week @ 2024-01-28 2/week @ 2024-02-04 37/week @ 2024-02-11

62 downloads per month

MIT/Apache

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–11MB
~98K SLoC