use progresso::{Progresso, Style, ProgressoBar, ValueDisplay}; use std::thread; fn main() { let mut style = Style::new_smooth_unicode(); style.value_display = ValueDisplay::Percentage; let mut pb = Progresso::new(style); pb.set_total(400); for i in 0..401 { pb.erase(); pb.set_value(i); pb.draw(); thread::sleep(std::time::Duration::from_millis(5)); } let mut style = Style::new_climbing_blocks_unicode(); style.value_display = ValueDisplay::Percentage; let mut pb = Progresso::new(style); pb.set_total(400); for i in 0..401 { pb.erase(); pb.set_value(i); pb.draw(); thread::sleep(std::time::Duration::from_millis(50)); } }