module

TUI::Keys

Constants

ESC_TIMEOUT = 50.milliseconds

How long .read_byte_timeout waits for a follow-up byte after a bare \e, to tell a real Esc keypress apart from the start of a longer escape sequence (arrow keys, mouse reports, etc).

Class methods

read(io : IO) : KeyEvent

ameba:disable Metrics/CyclomaticComplexity

Source