Revert "Support multibyte input"

This reverts commit 6d9e54816f828983bcf383ce6fce287bd3ca05b9.
This commit is contained in:
aycabta 2019-09-14 00:10:34 +09:00
parent 7e0f56fb3d
commit 06bbacc086

View File

@ -26,8 +26,7 @@ class Reline::ANSI
unless @@buf.empty?
return @@buf.shift
end
c = @@input.raw(&:getbyte)
(c == 0x16 && @@input.raw(min: 0, tim: 0, &:getbyte)) || c
@@input.raw(&:getbyte)
end
def self.ungetc(c)