Callback

expect interface Callback

Platform-specific integration callbacks.

actual interface Callback

Platform-specific integration callbacks.

actual interface Callback

Platform-specific integration callbacks.

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)

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

actual abstract fun onFocus(focused: Boolean)

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

Link copied to clipboard
expect abstract fun onKey()

Currently unused.

actual abstract fun onKey()

Currently unused.

actual abstract fun onKey()

Currently unused.

Link copied to clipboard
expect abstract fun onMouse()

Currently unused.

actual abstract fun onMouse()

Currently unused.

actual abstract fun onMouse()

Currently unused.

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)

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)

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