module TUI::Keys

Defined in:

tui/core/keys.cr

Constant Summary

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 Method Summary

Class Method Detail

def self.read(io : IO) : KeyEvent #

[View source]