KetraTerm
API · DevelopmentAll versions

Package-level declarations

Types

Link copied to clipboard
data class TerminalFocusEvent(val focused: Boolean) : TerminalInputEvent

Focus transition event accepted by the terminal input encoder.

Link copied to clipboard
sealed interface TerminalInputEvent

Immutable normalized input accepted by an encoder. Sessions can admit a bounded list of these events as one ordered operation. Byte encoding and mode-dependent suppression remain the responsibility of the input encoder.

Link copied to clipboard

Non-printable terminal keys accepted by the input encoder.

Link copied to clipboard
data class TerminalKeyEvent(val key: TerminalKey? = null, val codepoint: Int = NO_CODEPOINT, val unshiftedCodepoint: Int = NO_CODEPOINT, val shiftedCodepoint: Int = NO_CODEPOINT, val baseLayoutCodepoint: Int = NO_CODEPOINT, val associatedText: String? = null, val modifiers: Int = TerminalModifiers.NONE, val type: TerminalKeyEventType = TerminalKeyEventType.PRESS) : TerminalInputEvent

One keyboard event accepted by the terminal input encoder.

Link copied to clipboard

Physical lifecycle phase of a normalized keyboard event.

Link copied to clipboard

Bit mask vocabulary for UI keyboard modifiers accepted by terminal input.

Link copied to clipboard

Platform-neutral mouse button vocabulary for terminal input reporting.

Link copied to clipboard
data class TerminalMouseEvent(val column: Int, val row: Int, val button: TerminalMouseButton, val type: TerminalMouseEventType, val modifiers: Int = TerminalModifiers.NONE, val pixelX: Int = -1, val pixelY: Int = -1) : TerminalInputEvent

One platform-neutral mouse event accepted by the terminal input encoder.

Link copied to clipboard

Mouse event family accepted by the terminal input encoder.

Link copied to clipboard

Paste event accepted by the terminal input encoder.

Link copied to clipboard
data class TerminalTextReplacementEvent(val deleteAfterCursorCount: Int, val deleteBeforeCursorCount: Int, val replacementText: String) : TerminalInputEvent

One logical terminal text replacement around the active cursor.