1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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)