TerminalKeyEvent

data class TerminalKeyEvent(val key: TerminalKey? = null, val codepoint: Int = NO_CODEPOINT, val modifiers: Int = TerminalModifiers.NONE)

One keyboard event accepted by the terminal input encoder.

Exactly one of key or codepoint must be provided. Non-printable keys use key; printable text uses a Unicode scalar codepoint.

Constructors

Link copied to clipboard
constructor(key: TerminalKey? = null, codepoint: Int = NO_CODEPOINT, modifiers: Int = TerminalModifiers.NONE)

Types

Link copied to clipboard
object Companion

Factory methods and sentinel values for TerminalKeyEvent.

Properties

Link copied to clipboard

Unicode scalar value for printable input, or NO_CODEPOINT when this is a non-printable key.

Link copied to clipboard

non-printable key, or null when this is printable input.

Link copied to clipboard

active keyboard modifiers using TerminalModifiers bits.