mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Support multibyte input
This commit is contained in:
parent
685f12bbca
commit
6d9e54816f
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ class Reline::ANSI
|
|||
unless @@buf.empty?
|
||||
return @@buf.shift
|
||||
end
|
||||
@@input.raw(&:getbyte)
|
||||
c = @@input.raw(&:getbyte)
|
||||
(c == 0x16 && @@input.raw(min: 0, tim: 0, &:getbyte)) || c
|
||||
end
|
||||
|
||||
def self.ungetc(c)
|
||||
|
|
Loading…
Reference in a new issue