Skip to content

Commit

Permalink
Disable dialog proc if TERM=dumb (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Mar 24, 2024
1 parent a0cee06 commit 4928e06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/reline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,10 @@ def readline(prompt = '', add_hist = false)
line_editor.auto_indent_proc = auto_indent_proc
line_editor.dig_perfect_match_proc = dig_perfect_match_proc
pre_input_hook&.call
@dialog_proc_list.each_pair do |name_sym, d|
line_editor.add_dialog_proc(name_sym, d.dialog_proc, d.context)
unless Reline::IOGate == Reline::GeneralIO
@dialog_proc_list.each_pair do |name_sym, d|
line_editor.add_dialog_proc(name_sym, d.dialog_proc, d.context)
end
end

unless config.test_mode
Expand Down

0 comments on commit 4928e06

Please sign in to comment.