ruby-changes:57736
From: aycabta <ko1@a...>
Date: Sat, 14 Sep 2019 00:12:14 +0900 (JST)
Subject: [ruby-changes:57736] e8fff0ec9c (master): Revert "Use IO#getbyte"
https://git.ruby-lang.org/ruby.git/commit/?id=e8fff0ec9c From e8fff0ec9cf16487986856c83354c9427e358d1d Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Sat, 14 Sep 2019 00:10:45 +0900 Subject: Revert "Use IO#getbyte" This reverts commit 685f12bbca50ff9b7a16b3016b3b8b3f2ac8b796. diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index 2eca2b0..41f2918 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -26,7 +26,7 @@ class Reline::ANSI https://github.com/ruby/ruby/blob/trunk/lib/reline/ansi.rb#L26 unless @@buf.empty? return @@buf.shift end - @@input.raw(&:getbyte) + @@input.getch&.ord end def self.ungetc(c) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/