(self, x: int, y: int)
| 338 | self.__write(MOVE_DOWN.format(dy)) |
| 339 | |
| 340 | def move_cursor(self, x: int, y: int) -> None: |
| 341 | if x < 0 or y < 0: |
| 342 | raise ValueError(f"Bad cursor position {x}, {y}") |
| 343 | |
| 344 | if y < self.__offset or y >= self.__offset + self.height: |
| 345 | self.event_queue.insert(0, Event("scroll", "")) |
| 346 | else: |
| 347 | self._move_relative(x, y) |
| 348 | self.posxy = x, y |
| 349 | |
| 350 | def set_cursor_vis(self, visible: bool) -> None: |
| 351 | if visible: |
no test coverage detected