Function with_foreground

Source
pub fn with_foreground<F: FnOnce()>(color: Color, callback: F)
Expand description

Sets the foreground color before calling the function and resets it afterwards.