write

fun write(char: Char)

Writes a single character to the buffer at the current cursor position, overwriting existing text and advancing the cursor.