ruby-changes:57687
From: Nobuyoshi <ko1@a...>
Date: Tue, 10 Sep 2019 00:57:35 +0900 (JST)
Subject: [ruby-changes:57687] 685f12bbca (master): Use IO#getbyte
https://git.ruby-lang.org/ruby.git/commit/?id=685f12bbca From 685f12bbca50ff9b7a16b3016b3b8b3f2ac8b796 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 8 Sep 2019 22:19:10 +0900 Subject: Use IO#getbyte diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index 41f2918..2eca2b0 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.getch&.ord + @@input.raw(&:getbyte) end def self.ungetc(c) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/