ruby-changes:66533
From: aycabta <ko1@a...>
Date: Mon, 21 Jun 2021 18:44:43 +0900 (JST)
Subject: [ruby-changes:66533] 00b027a69b (master): [ruby/reline] Fix explamation of #read_io
https://git.ruby-lang.org/ruby.git/commit/?id=00b027a69b From 00b027a69ba4f6b0df8d10cb84ef0547d592dc91 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> 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(-) diff --git a/lib/reline.rb b/lib/reline.rb index 26cf911..649eec5 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -271,11 +271,12 @@ module Reline https://github.com/ruby/ruby/blob/trunk/lib/reline.rb#L271 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.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/