(self, text: str)
| 316 | self.__write("\x1b[?2004l") |
| 317 | |
| 318 | def __write(self, text: str) -> None: |
| 319 | if "\x1a" in text: |
| 320 | text = ''.join(["^Z" if x == '\x1a' else x for x in text]) |
| 321 | |
| 322 | if self.out is not None: |
| 323 | self.out.write(text.encode(self.encoding, "replace")) |
| 324 | self.out.flush() |
| 325 | else: |
| 326 | os.write(self.output_fd, text.encode(self.encoding, "replace")) |
| 327 | |
| 328 | @property |
| 329 | def screen_xy(self) -> tuple[int, int]: |
no test coverage detected