D.A.B.Tv0.0.33 Tutorial API DABT Tools ↗ GitHub ↗

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.fresh returns 0; otherwise send the whole frame with tui.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_canvas remembers are dropped, so its next frame sends every row.