Move the cursor to the specified position on the screen. Parameters: - x (int): X coordinate. - y (int): Y coordinate.
(self, x, y)
| 324 | self.flushoutput() |
| 325 | |
| 326 | def move_cursor(self, x, y): |
| 327 | """ |
| 328 | Move the cursor to the specified position on the screen. |
| 329 | |
| 330 | Parameters: |
| 331 | - x (int): X coordinate. |
| 332 | - y (int): Y coordinate. |
| 333 | """ |
| 334 | if y < self.__offset or y >= self.__offset + self.height: |
| 335 | self.event_queue.insert(Event("scroll", None)) |
| 336 | else: |
| 337 | self.__move(x, y) |
| 338 | self.posxy = x, y |
| 339 | self.flushoutput() |
| 340 | |
| 341 | def prepare(self): |
| 342 | """ |
no test coverage detected