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

Function test_restore_cursor

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

Source from the content-addressed store, hash-verified

23
24
25def test_restore_cursor(live_render):
26 assert str(live_render.restore_cursor()) == ""
27 live_render._shape = (80, 2)
28 assert str(live_render.restore_cursor()) == "\r\x1b[1A\x1b[2K\x1b[1A\x1b[2K"
29
30
31def test_rich_console(live_render):

Callers

nothing calls this directly

Calls 1

restore_cursorMethod · 0.80

Tested by

no test coverage detected