KetraTerm
API · v0.3.0All versions

writeText

abstract fun writeText(text: String)

Writes text literally to the buffer using the active pen attributes.

Control characters (\n, \r, \t, etc.) are not interpreted; they are written as ordinary codepoints. This convenience path is scalar-only: it forwards each decoded codepoint independently and does not perform grapheme segmentation. Use writeCluster from a parser/segmenter when a complete grapheme sequence must be written as one cell. Each unpaired UTF-16 surrogate is replaced with U+FFFD, whose width follows the active ambiguous-width mode like an explicitly supplied U+FFFD.

Parameters

text

Text to write.