3 releases
0.1.2 | Mar 18, 2023 |
---|---|
0.1.1 | Mar 18, 2023 |
0.1.0 | Mar 18, 2023 |
#855 in Command-line interface
16KB
365 lines
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())
}
Dependencies
~260–540KB