TerminalRenderClusterDataSink

Receives grapheme cluster code points while a row is copied.

This is the allocation-conscious cluster handoff for render caches. The supplied codepoints range is valid only for the duration of the callback; receivers that retain it must copy the primitive range into their own storage before returning.

Functions

Link copied to clipboard
abstract fun onCluster(column: Int, codepoints: IntArray, offset: Int, length: Int)

Called during copyLine() for a TerminalRenderCellFlags.CLUSTER cell.