macro_rules! wf {
($s:expr, $($font:expr),*) => { ... };
}Expand description
写入多种字体
§Example
use color_string::wf;
use color_string::Font::*;
let mut fonts = String::new();
wf!(&mut fonts, Red, Bold, Underline, BgColor(1, 2, 3));
println!("{} hello world! {}", fonts, Reset);
assert_eq!("\x1b[31;1;4;48;2;1;2;3m", fonts)