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!

For serializing/deserializing of some structs, the serde feature can be enabled.

Modules§

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

Structs§

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

Enums§

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

Type Aliases§

Result
Result with the given type and an instance of Yarr.