pub fn with_foreground<F: FnOnce()>(color: Color, callback: F)
Sets the foreground color before calling the function and resets it afterwards.