Writes the text into the console at the position of the cursor.
(&mut self, text: &str)
| 108 | /// Writes the text into the console at the position of the cursor. |
| 109 | /// |
| 110 | pub(crate) fn write(&mut self, text: &str) -> io::Result<()> { |
| 111 | self.console.write(text)?; |
| 112 | if self.console.is_interactive() { |
| 113 | self.cur_columns += text.len(); |
| 114 | } |
| 115 | Ok(()) |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | #[cfg(test)] |