summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/reline/ansi.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb
index 37ddfa1053..8832dcad03 100644
--- a/lib/reline/ansi.rb
+++ b/lib/reline/ansi.rb
@@ -24,14 +24,7 @@ class Reline::ANSI
unless @@buf.empty?
return @@buf.shift
end
- c = nil
- loop do
- result = select([@@input], [], [], 0.001)
- next if result.nil?
- c = @@input.read(1)
- break
- end
- c&.ord
+ @@input.getbyte
end
def self.ungetc(c)