summaryrefslogtreecommitdiff
path: root/lib/reline.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/reline.rb')
-rw-r--r--lib/reline.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/reline.rb b/lib/reline.rb
index 258edcd457..ac279b43f0 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -273,6 +273,9 @@ module Reline
end
def inner_readline(prompt, add_hist, multiline, &confirm_multiline_termination)
+ if ENV['RELINE_STDERR_TTY']
+ $stderr.reopen(ENV['RELINE_STDERR_TTY'], 'w')
+ end
@@config.read
otio = Reline::IOGate.prep