KetraTerm
API · DevelopmentAll versions

writeAscii

abstract fun writeAscii(bytes: ByteArray, offset: Int, length: Int)

Writes independent printable ASCII graphemes in order at the cursor position.

Every byte in the specified slice is in 0x20..0x7e and has already passed charset mapping and grapheme segmentation. The sink owns cell width and all grid behavior. The array is borrowed only for this call and must be consumed synchronously, not retained. An empty slice has no effect.

Parameters

bytes

The backing array containing printable ASCII bytes.

offset

The first byte in the slice.

length

The number of bytes in the slice.