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

Reopen $stderr with specified fd by RELINE_STDERR_TTY

This commit is contained in:
aycabta 2019-05-22 02:13:57 +09:00
parent b508b623ee
commit be86e71c67

View file

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