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

Function test_position_cursor

tests/test_live_render.py:19–22  ·  view source on GitHub ↗
(live_render)

Source from the content-addressed store, hash-verified

17
18
19def test_position_cursor(live_render):
20 assert str(live_render.position_cursor()) == ""
21 live_render._shape = (80, 2)
22 assert str(live_render.position_cursor()) == "\r\x1b[2K\x1b[1A\x1b[2K"
23
24
25def test_restore_cursor(live_render):

Callers

nothing calls this directly

Calls 1

position_cursorMethod · 0.80

Tested by

no test coverage detected