kdam 0.6.4

A console progress bar library for Rust. (inspired by tqdm & rich.progress)
Documentation
use kdam::{BarExt, tqdm};
use std::io::{IsTerminal, Result, stderr};

fn main() -> Result<()> {
    kdam::term::init(stderr().is_terminal());

    let mut pb = tqdm!(total = 100, colour = "#a485ca");

    for _ in 0..100 {
        std::thread::sleep(std::time::Duration::from_secs_f32(0.01));
        pb.update(1)?;
    }

    pb.colour = Some("#da70d6".into());
    pb.refresh()?;
    eprintln!();

    Ok(())
}