From be3823aa4ffc51260f2f3ce84f0984da3dc6dd10 Mon Sep 17 00:00:00 2001 From: Frank Macreery Date: Sat, 28 Jun 2014 22:53:24 -0700 Subject: [PATCH] Revert 16c6037cde860c8b406e8140c5263fb7f4b26506 to fix spec/Procfile Fixes #1258 --- lib/pry/repl.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/pry/repl.rb b/lib/pry/repl.rb index 4748785a..287dcf4f 100644 --- a/lib/pry/repl.rb +++ b/lib/pry/repl.rb @@ -180,6 +180,9 @@ class Pry end if defined?(Readline) and input == Readline + if !$stdout.tty? && $stdin.tty? && !Pry::Helpers::BaseHelpers.windows? + Readline.output = File.open('/dev/tty', 'w') + end input_readline(current_prompt, false) # false since we'll add it manually elsif defined? Coolline and input.is_a? Coolline input_readline(current_prompt)