diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index e1880454e5..4c777479cd 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -181,7 +181,12 @@ def reset(prompt = '', encoding:) Reline::IOGate.set_winch_handler do @resized = true end - if Reline::IOGate.win? + if ENV.key?('RELINE_ALT_SCROLLBAR') + @full_block = '::' + @upper_half_block = "''" + @lower_half_block = '..' + @block_elem_width = 2 + elsif Reline::IOGate.win? @full_block = '█' @upper_half_block = '▀' @lower_half_block = '▄'