(&mut self, fg: Option<u8>, bg: Option<u8>)
| 543 | } |
| 544 | |
| 545 | fn set_color(&mut self, fg: Option<u8>, bg: Option<u8>) -> io::Result<()> { |
| 546 | self.ansi_fg_color = fg; |
| 547 | self.fg_color = ansi_color_to_rgb(fg.unwrap_or(self.default_fg_color)); |
| 548 | self.ansi_bg_color = bg; |
| 549 | self.bg_color = ansi_color_to_rgb(bg.unwrap_or(self.default_bg_color)); |
| 550 | Ok(()) |
| 551 | } |
| 552 | |
| 553 | fn enter_alt(&mut self) -> io::Result<()> { |
| 554 | if self.alt_backup.is_some() { |
no test coverage detected