Support multibyte input
This commit is contained in:
parent
cf59e1476d
commit
efd4a11ada
@ -30,7 +30,8 @@ class Reline::ANSI
|
|||||||
unless @@buf.empty?
|
unless @@buf.empty?
|
||||||
return @@buf.shift
|
return @@buf.shift
|
||||||
end
|
end
|
||||||
@@input.getbyte
|
c = @@input.getbyte
|
||||||
|
(c == 0x16 && @@input.raw(min: 0, tim: 0, &:getbyte)) || c
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.ungetc(c)
|
def self.ungetc(c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user