class Reline::Core
def read_io(keyseq_timeout, &block)
Experimental RBS support (using type sampling data from the type_fusion
project).
def read_io: (Integer keyseq_timeout, ) -> nil
This signature was generated using 1 sample from 1 application.
GNU Readline will wait for the 2nd character with "keyseq-timeout"
multibyte characters with the 8th bit turned on.
meta-property of meta-key, so that it can be distinguished from
comes before timed out, it is treated as a modifier key with the
ESC if the second character does not arrive. If the second character
is followed by a character, and times out and treats it as a standalone
GNU Readline waits for "keyseq-timeout" milliseconds to see if the ESC
def read_io(keyseq_timeout, &block) = [] o io_gate.getc == -1 sult = :unmatched racketed_paste_finished = true ffer << c sult = key_stroke.match_status(buffer) result :matched panded = key_stroke.expand(buffer).map{ |expanded_c| Reline::Key.new(expanded_c, expanded_c, false) ock.(expanded) eak :matching buffer.size == 1 case read_2nd_character_of_key_sequence(keyseq_timeout, buffer, c, block) when :break then break when :next then next end d :unmatched buffer.size == 1 and c == "\e".ord read_escaped_key(keyseq_timeout, c, block) se expanded = buffer.map{ |expanded_c| Reline::Key.new(expanded_c, expanded_c, false) } block.(expanded) d eak