Skip to content

Commit

Permalink
Allow env RELINE_STDERR_TTY to be used in yamatanooroti test
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Dec 31, 2020
1 parent 7d58da4 commit 9ec0304
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/multiline_repl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ require 'reline'
require 'optparse'
require_relative 'termination_checker'

if ENV['RELINE_STDERR_TTY']
$stderr.reopen(ENV['RELINE_STDERR_TTY'], 'w')
$stderr.sync = true
$stderr.puts "Reline is used by #{Process.pid}"
end

opt = OptionParser.new
opt.on('--prompt-list-cache-timeout VAL') { |v|
Reline::LineEditor.__send__(:remove_const, :PROMPT_LIST_CACHE_TIMEOUT)
Expand Down

0 comments on commit 9ec0304

Please sign in to comment.