Skip to content

Commit

Permalink
Support multibyte input
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu authored and aycabta committed Dec 22, 2019
1 parent cf59e14 commit efd4a11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/reline/ansi.rb
Expand Up @@ -30,7 +30,8 @@ def self.getc
unless @@buf.empty?
return @@buf.shift
end
@@input.getbyte
c = @@input.getbyte
(c == 0x16 && @@input.raw(min: 0, tim: 0, &:getbyte)) || c
end

def self.ungetc(c)
Expand Down

0 comments on commit efd4a11

Please sign in to comment.