KetraTerm
API · v0.3.0All versions

packedColumnRange

fun packedColumnRange(row: Int, columns: Int, cache: TerminalRenderCache? = null): Long

Returns the selected half-open column range for row, packed as start shl 32 | end, or NO_RANGE when row is outside the selection. The range uses logical columns for linear selections and visual columns for blocks. A block's visual bounds do not depend on the row's bidi order.

Return

packed half-open range, or NO_RANGE.

Parameters

row

visible render-cache row.

columns

visible render-cache column count.

cache

optional cache used to include complete wide cells in linear selections. Block bounds require a row's visual mapping for this adjustment.