(self, line: Union[str, bytes], **markup: bool)
| 417 | self._tw.flush() |
| 418 | |
| 419 | def write_line(self, line: Union[str, bytes], **markup: bool) -> None: |
| 420 | if not isinstance(line, str): |
| 421 | line = str(line, errors="replace") |
| 422 | self.ensure_newline() |
| 423 | self._tw.line(line, **markup) |
| 424 | |
| 425 | def rewrite(self, line: str, **markup: bool) -> None: |
| 426 | """Rewinds the terminal cursor to the beginning and writes the given line. |