diff options
author | aycabta <aycabta@gmail.com> | 2019-09-14 00:10:45 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-09-14 00:10:45 +0900 |
commit | e8fff0ec9cf16487986856c83354c9427e358d1d (patch) | |
tree | b86ac95c85ffcd3b62096971ecbcd0d426764507 | |
parent | 06bbacc086d9a63c4443aafb19903b792c41c2e0 (diff) | |
download | ruby-e8fff0ec9cf16487986856c83354c9427e358d1d.tar.gz |
Revert "Use IO#getbyte"
This reverts commit 685f12bbca50ff9b7a16b3016b3b8b3f2ac8b796.
-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 2eca2b0960..41f291809e 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.raw(&:getbyte) + @@input.getch&.ord end def self.ungetc(c) |