From 00b027a69ba4f6b0df8d10cb84ef0547d592dc91 Mon Sep 17 00:00:00 2001 From: aycabta Date: Wed, 9 Jun 2021 20:37:10 +0900 Subject: [ruby/reline] Fix explamation of #read_io https://github.com/ruby/reline/commit/301ed11bec --- lib/reline.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/reline.rb') diff --git a/lib/reline.rb b/lib/reline.rb index 26cf9119ee..649eec574b 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -271,11 +271,12 @@ module Reline Reline::IOGate.deprep(otio) end - # Keystrokes of GNU Readline will timeout it with the specification of - # "keyseq-timeout" when waiting for the 2nd character after the 1st one. - # If the 2nd character comes after 1st ESC without timeout it has a - # meta-property of meta-key to discriminate modified key with meta-key - # from multibyte characters that come with 8th bit on. + # GNU Readline waits for "keyseq-timeout" milliseconds to see if the ESC + # is followed by a character, and times out and treats it as a standalone + # ESC if the second character does not arrive. If the second character + # comes before timed out, it is treated as a modifier key with the + # meta-property of meta-key, so that it can be distinguished from + # multibyte characters with the 8th bit turned on. # # GNU Readline will wait for the 2nd character with "keyseq-timeout" # milli-seconds but wait forever after 3rd characters. -- cgit v1.2.3