KetraTerm
API · DevelopmentAll versions

getCodepoint

abstract fun getCodepoint(col: Int): Int

Returns the base (first) codepoint for the cell at col.

  • For plain cells this is the full Unicode scalar value.

  • For cluster cells this is the leading codepoint of the grapheme sequence. Simple renderers that map one cell to one glyph can use this value directly.

  • Returns 0 for blank cells.

  • Returns -1 for the right half of a 2-cell wide character; renderers should skip such cells.

Return

The base Unicode codepoint at the specified column, or a spacer/empty sentinel.

Parameters

col

Column index (0-based).