(self, text: str)
| 292 | self.__write("\x1b[?12l") |
| 293 | |
| 294 | def __write(self, text: str) -> None: |
| 295 | if "\x1a" in text: |
| 296 | text = ''.join(["^Z" if x == '\x1a' else x for x in text]) |
| 297 | |
| 298 | if self.out is not None: |
| 299 | self.out.write(text.encode(self.encoding, "replace")) |
| 300 | self.out.flush() |
| 301 | else: |
| 302 | os.write(self.output_fd, text.encode(self.encoding, "replace")) |
| 303 | |
| 304 | @property |
| 305 | def screen_xy(self) -> tuple[int, int]: |
no test coverage detected