Use IO#getbyte
This commit is contained in:
parent
805b0a4811
commit
685f12bbca
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user