mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
parent
a6fad5f465
commit
be3823aa4f
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue