Terminal

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
Link copied to clipboard
fun fill(rectangle: Rect2i)
fun fill(rectangle: Rect2i, character: Char)
Link copied to clipboard

fun readEvent(submittedLineLimit: Int): TerminalEvent

Also accepts an atomic host-submitted line, bounded in UTF-16 units. A zero limit marks a line editor with a draft; submissions are rejected. The caller must enable reception only when a complete line can be accepted.

Link copied to clipboard
fun setColors(foreground: TerminalColor, background: TerminalColor)
Link copied to clipboard
fun setCursor(position: Position2i)
Link copied to clipboard
Link copied to clipboard
fun write(character: Char)

Writes one UTF-16 unit. An isolated surrogate is rendered as a replacement character.

fun write(buffer: CharArray)

Writes the selected UTF-16 range without materializing a Guest String.

fun write(text: CharSequence)
fun write(buffer: CharArray, startIndex: Int, endIndex: Int)
Link copied to clipboard
fun writeAt(position: Position2i, character: Char)
fun writeAt(position: Position2i, buffer: CharArray)
fun writeAt(position: Position2i, text: CharSequence)
fun writeAt(position: Position2i, buffer: CharArray, startIndex: Int, endIndex: Int)