diff --git a/src/main.rs b/src/main.rs index 790734d..ac004ef 100644 --- a/src/main.rs +++ b/src/main.rs @@ -93,10 +93,11 @@ fn print_system_info(fields: &Fields) -> io::Result<()> { .max() .unwrap_or(0); - writeln!(io::stdout(), "{:<27} {} ~{RESET}", LOGO[0], user_info)?; + let mut handle = io::stdout().lock(); + writeln!(handle, "{:<27} {} ~{RESET}", LOGO[0], user_info)?; for (logo_line, (icon, label, value)) in LOGO[1..].iter().zip(system_info.iter()) { writeln!( - io::stdout(), + handle, "{:<27} {CYAN}{:<2} {BLUE}{: