From e8fff0ec9cf16487986856c83354c9427e358d1d Mon Sep 17 00:00:00 2001 From: aycabta Date: Sat, 14 Sep 2019 00:10:45 +0900 Subject: Revert "Use IO#getbyte" This reverts commit 685f12bbca50ff9b7a16b3016b3b8b3f2ac8b796. --- lib/reline/ansi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index 2eca2b0960..41f291809e 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -26,7 +26,7 @@ class Reline::ANSI unless @@buf.empty? return @@buf.shift end - @@input.raw(&:getbyte) + @@input.getch&.ord end def self.ungetc(c) -- cgit v1.2.3