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:
@@ -126,6 +126,7 @@ pub fn print_message_ex(color: Option<term::color::Color>, h: &str, message: &st
|
|||||||
Some(c) => t.fg(c).unwrap(),
|
Some(c) => t.fg(c).unwrap(),
|
||||||
None => (),
|
None => (),
|
||||||
}
|
}
|
||||||
|
t.attr(term::Attr::Bold).unwrap();
|
||||||
write!(t, "{}", h).unwrap();
|
write!(t, "{}", h).unwrap();
|
||||||
t.reset().unwrap();
|
t.reset().unwrap();
|
||||||
println!(" {}", message);
|
println!(" {}", message);
|
||||||
|
|||||||
Reference in New Issue
Block a user