codepoint
fun codepoint(codepoint: Int, modifiers: Int = TerminalModifiers.NONE, unshiftedCodepoint: Int = NO_CODEPOINT, shiftedCodepoint: Int = NO_CODEPOINT, baseLayoutCodepoint: Int = NO_CODEPOINT, associatedText: String? = null, type: TerminalKeyEventType = TerminalKeyEventType.PRESS): TerminalKeyEvent
Creates a printable Unicode scalar key event.
Return
a new TerminalKeyEvent instance.
Parameters
codepoint
Unicode scalar value to encode.
modifiers
active keyboard modifiers.
unshiftedCodepoint
unshifted Unicode scalar identifying the physical text-producing key for Kitty-compatible protocols. Defaults to NO_CODEPOINT when the input source cannot provide that identity.
shiftedCodepoint
shifted current-layout key scalar for Kitty alternate-key reporting.
baseLayoutCodepoint
standard PC-101 base-layout key scalar for Kitty alternate-key reporting.
associatedText
text produced by this key for Kitty associated-text reporting.
type
physical lifecycle phase reported by the host.