Use IO#getbyte

This commit is contained in:
Nobuyoshi Nakada 2019-09-08 22:19:10 +09:00 committed by aycabta
parent 805b0a4811
commit 685f12bbca

View File

@ -26,7 +26,7 @@ class Reline::ANSI
unless @@buf.empty?
return @@buf.shift
end
@@input.getch&.ord
@@input.raw(&:getbyte)
end
def self.ungetc(c)