Revert "Use IO#getbyte"
This reverts commit 685f12bbca50ff9b7a16b3016b3b8b3f2ac8b796.
This commit is contained in:
parent
06bbacc086
commit
e8fff0ec9c
@ -26,7 +26,7 @@ class Reline::ANSI
|
|||||||
unless @@buf.empty?
|
unless @@buf.empty?
|
||||||
return @@buf.shift
|
return @@buf.shift
|
||||||
end
|
end
|
||||||
@@input.raw(&:getbyte)
|
@@input.getch&.ord
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.ungetc(c)
|
def self.ungetc(c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user