[−][src]Function bear_lib_terminal::terminal::with_colors
pub fn with_colors<F: FnOnce()>(fg: Color, bg: Color, callback: F)
Sets the foreground and background color before calling the function and resets them afterwards.
pub fn with_colors<F: FnOnce()>(fg: Color, bg: Color, callback: F)
Sets the foreground and background color before calling the function and resets them afterwards.