key

fun key(key: TerminalKey, modifiers: Int = TerminalModifiers.NONE, type: TerminalKeyEventType = TerminalKeyEventType.PRESS): TerminalKeyEvent

Creates a non-printable key event.

Return

a new TerminalKeyEvent instance.

Parameters

key

non-printable terminal key.

modifiers

active keyboard modifiers.

type

physical lifecycle phase reported by the host.