velocity

Crates.iovelocity
lib.rsvelocity
version0.1.2
sourcesrc
created_at2023-03-18 04:07:26.447849
updated_at2023-03-18 05:35:18.008106
descriptionA next level TUI Library
homepagehttps://github.com/kawaleo/velocity
repositoryhttps://github.com/kawaleo/velocity
max_upload_size
id813504
size29,034
(kawaleo)

documentation

README

Velocity

Velocity is a library for creating simple yet stunning text interfaces in the terminal.

In action

use velocity::progress::{Bar, Styles};
use velocity::colors::Paint;

fn main() {
    let mut my_bar = Bar::new(Styles::Square);
    my_bar.set_title("Loading cute kittens...");
    my_bar.set_width(80); // 80 Percent terminal width

    my_bar.start();

    for i in 0..=100 {
        my_bar.jump(i);
        std::thread::sleep(std::time::Duration::from_millis(100));
    }

    my_bar.end();

    println!("{}", "Kittens loaded!!!".green().bold().underline())
}
Commit count: 0

cargo fmt