diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-08 22:19:10 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-09-10 00:56:31 +0900 |
commit | 685f12bbca50ff9b7a16b3016b3b8b3f2ac8b796 (patch) | |
tree | 21880f0d6a1e892d7b9472b6307465bd514f7bf8 /lib/reline/ansi.rb | |
parent | 805b0a481132938638dbd32830cf5dca3910efb1 (diff) | |
download | ruby-685f12bbca50ff9b7a16b3016b3b8b3f2ac8b796.tar.gz |
Use IO#getbyte
Diffstat (limited to 'lib/reline/ansi.rb')
-rw-r--r-- | lib/reline/ansi.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index 41f291809e..2eca2b0960 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -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) |