kdam 0.6.4

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

fn main() -> Result<()> {
    term::init(false);
    term::hide_cursor()?;

    let mut pb1 = tqdm!(total = 100, position = 0);
    let mut pb2 = tqdm!(total = 100, position = 4);

    Writer::Stderr
        .init()
        .print_at(2, "any text can be placed between bars".as_bytes())?;

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

    eprint!("{}", "\n".repeat(5));
    println!("completed!");

    Ok(())
}