1
0
mirror of https://github.com/jht5945/rust_util.git synced 2025-12-27 15:40:03 +08:00

fix message header mark as bold

This commit is contained in:
2019-07-22 01:36:25 +08:00
parent 2b1c7ca310
commit 282cfad793

View File

@@ -126,6 +126,7 @@ pub fn print_message_ex(color: Option<term::color::Color>, h: &str, message: &st
Some(c) => t.fg(c).unwrap(),
None => (),
}
t.attr(term::Attr::Bold).unwrap();
write!(t, "{}", h).unwrap();
t.reset().unwrap();
println!(" {}", message);