Callback

expect interface Callback

Platform-specific integration callbacks.

actual interface Callback
actual interface Callback

Functions

Link copied to clipboard
expect abstract fun onFocus(focused: Boolean)

Called when the window gains or loses focus. Only invoked on Windows.

actual abstract fun onFocus(focused: Boolean)
actual abstract fun onFocus(focused: Boolean)
Link copied to clipboard
expect abstract fun onKey()

Currently unused.

actual abstract fun onKey()
actual abstract fun onKey()
Link copied to clipboard
expect abstract fun onMouse()

Currently unused.

actual abstract fun onMouse()
actual abstract fun onMouse()
Link copied to clipboard
expect abstract fun onResize(columns: Int, rows: Int, width: Int, height: Int)

If Tty.enableWindowResizeEvents was invoked, this is called when the window is resized.

actual abstract fun onResize(columns: Int, rows: Int, width: Int, height: Int)
actual abstract fun onResize(columns: Int, rows: Int, width: Int, height: Int)