Function bear_lib_terminal::terminal::with_colors
[−]
[src]
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.