(self, msg: str, *, flush: bool = False, **markup: bool)
| 152 | self.line(line, **markup) |
| 153 | |
| 154 | def write(self, msg: str, *, flush: bool = False, **markup: bool) -> None: |
| 155 | if msg: |
| 156 | current_line = msg.rsplit("\n", 1)[-1] |
| 157 | if "\n" in msg: |
| 158 | self._current_line = current_line |
| 159 | else: |
| 160 | self._current_line += current_line |
| 161 | |
| 162 | msg = self.markup(msg, **markup) |
| 163 | |
| 164 | self.write_raw(msg, flush=flush) |
| 165 | |
| 166 | def write_raw(self, msg: str, *, flush: bool = False) -> None: |
| 167 | try: |