tui.canvas.patch
tui.canvas.patch PANE BYTES
Draws BYTES over the canvas at once, in one flush: absolute cursor moves and cells, for example only the cells an animation changed.
Parameters
PANE: pane id.BYTES: the cells to draw, with absolute cursor moves. Nothing is measured or cut.
Notes
- Use it only while
tui.canvas.freshreturns0; otherwise send the whole frame withtui.set_canvas. - The caller keeps the frame in step (see
tui.canvas.source). The Home page paints its banner this way: a blinking cursor is one small write, not the whole hero. - The rows
tui.set_canvasremembers are dropped, so its next frame sends every row.
