TerminalCursor

interface TerminalCursor

Functions

Link copied to clipboard
abstract fun getMoves(movements: CursorMovements.() -> Unit): String

Return a string contianing the ANSI codes for the movements commands called in movements.

Link copied to clipboard
abstract fun hide(showOnExit: Boolean = true)

Hide the cursor

Link copied to clipboard
abstract fun move(movements: CursorMovements.() -> Unit)

Print the movement commands called in movements.

Link copied to clipboard
abstract fun show()

Show the cursor