Expand description
In-place live rendering.
Port of rich/live_render.py. A LiveRender wraps a renderable, remembers
the shape (width × height) of its last render, and produces the terminal
control sequences to move the cursor back over that render — the mechanism a
Live display uses to redraw in place. The full Live loop (threading,
timing, stdout management) is deferred; this is its byte-parity-testable core.
Scope: rendering + position_cursor/restore_cursor. Vertical-overflow
cropping (when content is taller than the screen) is deferred.
Structs§
- Live
Render - Wraps a renderable for repeated in-place redraws. Mirrors
rich.live_render.LiveRender.