(&mut self, text: &str)
| 419 | } |
| 420 | |
| 421 | fn write(&mut self, text: &str) -> io::Result<()> { |
| 422 | let text = remove_control_chars(text.to_owned()); |
| 423 | |
| 424 | let stdout = io::stdout(); |
| 425 | let mut stdout = stdout.lock(); |
| 426 | stdout.write_all(text.as_bytes())?; |
| 427 | self.maybe_flush(stdout) |
| 428 | } |
| 429 | |
| 430 | fn sync_now(&mut self) -> io::Result<()> { |
| 431 | if self.sync_enabled { Ok(()) } else { io::stdout().flush() } |
nothing calls this directly
no test coverage detected