summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-06-09 20:37:10 +0900
committeraycabta <aycabta@gmail.com>2021-06-21 17:58:49 +0900
commit00b027a69ba4f6b0df8d10cb84ef0547d592dc91 (patch)
treef98538c1156cd1f0c354e956e49df588b815000c
parentcf6f686d299d7b2f54512b985f0f4540ebcbe71a (diff)
[ruby/reline] Fix explamation of #read_io
https://github.com/ruby/reline/commit/301ed11bec
-rw-r--r--lib/reline.rb11
1 files changed, 6 insertions, 5 deletions
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.