Skip to content

Commit

Permalink
Add RELINE_ALT_SCROLLBAR env to use alternative text for scrollbar
Browse files Browse the repository at this point in the history
The setting to use '::' instead of block elements.
  • Loading branch information
aycabta committed Oct 9, 2021
1 parent 93bc9b5 commit 4afbc98
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '▄'
Expand Down

0 comments on commit 4afbc98

Please sign in to comment.