CursorMovements

interface CursorMovements

Functions

Link copied to clipboard
abstract fun clearLine()

Clear the current line.

Link copied to clipboard
abstract fun clearLineAfterCursor()

Clear the line after the cursor, leaving anything after the cursor unchanged.

Link copied to clipboard
abstract fun clearLineBeforeCursor()

Clear the line before the cursor, leaving anything after the cursor unchanged.

Link copied to clipboard
abstract fun clearScreen()

Clear the entire terminal screen.

Link copied to clipboard
abstract fun clearScreenAfterCursor()

Clear the screen after the cursor, leaving anything before the cursor unchanged.

Link copied to clipboard

Clear the screen before the cursor, leaving anything after the cursor unchanged.

Link copied to clipboard
abstract fun down(count: Int)

Move the cursor down count cells.

Link copied to clipboard
abstract fun left(count: Int)

Move the cursor left count cells.

Link copied to clipboard
abstract fun restorePosition()

Move the cursor to the position saved with a prior savePosition call.

Link copied to clipboard
abstract fun right(count: Int)

Move the cursor right count cells.

Link copied to clipboard
abstract fun savePosition()

Save the current cursor position. Restore it with restorePosition

Link copied to clipboard
abstract fun setPosition(x: Int, y: Int)

Set the cursor to an absolute position.

Link copied to clipboard
abstract fun startOfLine()

Move the cursor to the start of the current line

Link copied to clipboard
abstract fun up(count: Int)

Move the cursor up count cells.