[−][src]Macro ansiform::ansi
ansi!() { /* proc-macro */ }
Adds ANSI escape codes to a formatting string, allowing ANSI colors to be set at compile time instead of runtime.
Example
println!(ansi!("It {;green,bold}!"), "works"); println!(ansi!("{:#?;black,on bright white}!"), "Notes"); println!(ansi!("Warning: {:#?;yellow}!"), Some("warning"));