Crate yacll

source ·
Expand description

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!

Modules

Enums and structs for getting input from the user.
Enums and structs used for stylizing text and the cursor.

Structs

A point on the screen.
Yet Another Data Storage U Struct. Main struct for methods.

Enums

Different ways to clear the terminal buffer.
Yet Another Error enum.

Type Definitions

Result with the given type and an instance of Yarr.