(self, x: int, y: int)
| 370 | self.__write(MOVE_DOWN.format(dy)) |
| 371 | |
| 372 | def move_cursor(self, x: int, y: int) -> None: |
| 373 | if x < 0 or y < 0: |
| 374 | raise ValueError(f"Bad cursor position {x}, {y}") |
| 375 | |
| 376 | if y < self.__offset or y >= self.__offset + self.height: |
| 377 | self.event_queue.insert(Event("scroll", "")) |
| 378 | else: |
| 379 | self._move_relative(x, y) |
| 380 | self.posxy = x, y |
| 381 | |
| 382 | def set_cursor_vis(self, visible: bool) -> None: |
| 383 | if visible: |
no test coverage detected