enum Event
source · line 6public
public enum Event
A user-facing keyboard, mouse, focus, bracketed-paste, or terminal-resize event.
variant Paste
source · line 26public
Paste(val text: String)
Text received between bracketed-paste boundaries.
parameter text
source · line 26public
val text: String
field text
source · line 26public
val text: String
variant Key
source · line 10public
Key(val event: KeyEvent)
A decoded key event with modifiers, event kind, and additional state.
parameter event
source · line 10public
val event: KeyEvent
field event
source · line 10public
val event: KeyEvent
variant Resize
source · line 30public
Resize(val columns: Long, val rows: Long)
New terminal dimensions in character columns and rows.
parameter columns
source · line 30public
val columns: Long
field columns
source · line 30public
val columns: Long
parameter rows
source · line 30public
val rows: Long
field rows
source · line 30public
val rows: Long
variant Mouse
source · line 14public
Mouse(val event: MouseEvent)
A decoded mouse event with position and modifiers.
field event
source · line 14public
val event: MouseEvent
parameter event
source · line 14public
val event: MouseEvent
variant FocusLost
source · line 22public
FocusLost
The terminal reported losing focus.
variant FocusGained
source · line 18public
FocusGained
The terminal reported gaining focus.
function equals
source · line 6publiccompiler-derived
operator fun equals(other: Event): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: KeyEvent, MouseEvent, String, Long.