Erase all content from the cursor position to the start of that line
(self)
| 482 | ) |
| 483 | |
| 484 | def erase_start_of_line(self) -> None: |
| 485 | """Erase all content from the cursor position to the start of that line""" |
| 486 | row, col = self.cursor_position |
| 487 | start = WindowsCoordinates(row, 0) |
| 488 | FillConsoleOutputCharacter(self._handle, " ", length=col, start=start) |
| 489 | FillConsoleOutputAttribute( |
| 490 | self._handle, self._default_attrs, length=col, start=start |
| 491 | ) |
| 492 | |
| 493 | def move_cursor_up(self) -> None: |
| 494 | """Move the cursor up a single cell""" |