sylveos

Toy Operating System
Log | Files | Refs

commit 8d336bad2959bb5ac7bbd8cf21d53811c270a98f
parent cd7592289729e6df225b4a4cffcba3a519343f82
Author: Sylvia Ivory <git@sivory.net>
Date:   Tue, 10 Feb 2026 13:15:39 -0800

Updae progress bar

Diffstat:
Mtools/src/bootload.rs | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/tools/src/bootload.rs b/tools/src/bootload.rs @@ -1,7 +1,7 @@ use std::path::Path; use crc_fast::{CrcAlgorithm::Crc32IsoHdlc, checksum}; -use indicatif::{MultiProgress, ProgressBar}; +use indicatif::{MultiProgress, ProgressBar, ProgressStyle}; use log::{debug, info}; use tokio::{ fs::File, @@ -79,7 +79,15 @@ pub async fn boot( } port.write_u32_le(Message::PutCode as u32).await?; - let pg = multi.add(ProgressBar::new(code.len() as u64)); + let pg = multi.add( + ProgressBar::new(code.len() as u64).with_style( + ProgressStyle::with_template( + "[{elapsed}] [{wide_bar}] {binary_bytes}/{binary_total_bytes} (eta: {eta})", + ) + .unwrap() + .progress_chars("=> "), + ), + ); for b in code.iter() { port.write_u8(*b).await?;