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::{Color, flush_styles};

// this will print in rainbow colors
println!("{}This is red!", Color::Red);

// clear all colors and styles from the terminal to ensure the next output is normal
flush_styles();
println!("This is normal!");