MCPcopy
hub / github.com/Textualize/rich / move_cursor_up

Method move_cursor_up

rich/_win32_console.py:493–501  ·  view source on GitHub ↗

Move the cursor up a single cell

(self)

Source from the content-addressed store, hash-verified

491 )
492
493 def move_cursor_up(self) -> None:
494 """Move the cursor up a single cell"""
495 cursor_position = self.cursor_position
496 SetConsoleCursorPosition(
497 self._handle,
498 coords=WindowsCoordinates(
499 row=cursor_position.row - 1, col=cursor_position.col
500 ),
501 )
502
503 def move_cursor_down(self) -> None:
504 """Move the cursor down a single cell"""

Callers 3

test_move_cursor_upFunction · 0.95
_win32_console.pyFile · 0.80
legacy_windows_renderFunction · 0.80

Calls 2

SetConsoleCursorPositionFunction · 0.85
WindowsCoordinatesClass · 0.85

Tested by 1

test_move_cursor_upFunction · 0.76