Function better_term::flush_styles
source · [−]pub fn flush_styles()
Expand description
this will reset all colors and styles in the console for future output
Example:
use better_term::{flush_styles, rainbowify};
// this will print in rainbow colors
println!("{}", rainbowify("This is rainbow!"));
// clear all colors and styles from the terminal to ensure the next output is normal
flush_styles();
println!("This is normal!");