KetraTerm
API · DevelopmentAll versions

writeAscii

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

Writes length printable ASCII bytes starting at offset, using the active pen.

Each byte is an independent printable character, with the same wrapping, scrolling, overwrite and continuation behavior as successive writeCodepoint calls. This operation does not interpret controls, translate character sets, or segment graphemes. The caller may reuse bytes immediately after this synchronous call; the array is not retained. An empty range leaves all state unchanged.

Throws

if the range is outside bytes or any byte in the range is outside 0x20..0x7E. The complete range is checked before any mutation.