Sets the console's foreground and background colors to `fg` and `bg`. If any of the colors is `None`, the color is left unchanged.
(&mut self, fg: Option<u8>, bg: Option<u8>)
| 73 | /// |
| 74 | /// If any of the colors is `None`, the color is left unchanged. |
| 75 | pub(crate) fn set_color(&mut self, fg: Option<u8>, bg: Option<u8>) -> io::Result<()> { |
| 76 | self.console.set_color(fg, bg) |
| 77 | } |
| 78 | |
| 79 | /// Writes `text` to the console, followed by a newline or CRLF pair depending on the needs of |
| 80 | /// the console to advance a line. |
no outgoing calls