Skip to main content

Module live_render

Module live_render 

Source
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§

LiveRender
Wraps a renderable for repeated in-place redraws. Mirrors rich.live_render.LiveRender.