1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Revert 16c6037cde to fix spec/Procfile

Fixes #1258
This commit is contained in:
Frank Macreery 2014-06-28 22:53:24 -07:00
parent a6fad5f465
commit be3823aa4f

View file

@ -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)