updateAndPublish

Called from render worker thread only. Reads from reader, updates back buffer, publishes as new front.

Parameters

reader

source of the short-lived render frame.


fun updateAndPublish(reader: TerminalRenderFrameReader, scrollbackOffset: Int)

Called from render worker thread only.

scrollbackOffset is caller-owned viewport state in lines above the live bottom viewport. The source reader clamps it before rows are copied.

Parameters

reader

source of the short-lived render frame.

scrollbackOffset

requested lines above the live bottom viewport.


fun updateAndPublish(reader: TerminalRenderFrameReader, scrollbackOffset: Int, viewportRows: Int)

Called from render worker thread only.

viewportRows requests render-only overscan rows for UI composition. It does not resize terminal state; the source reader clamps the resolved frame height before rows are copied.

Parameters

reader

source of the short-lived render frame.

scrollbackOffset

requested lines above the live bottom viewport.

viewportRows

requested render rows, or zero for the reader default.