Skip to content

Commit 4afbc98

Browse files
committed
Add RELINE_ALT_SCROLLBAR env to use alternative text for scrollbar
The setting to use '::' instead of block elements.
1 parent 93bc9b5 commit 4afbc98

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/reline/line_editor.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,12 @@ def reset(prompt = '', encoding:)
181181
Reline::IOGate.set_winch_handler do
182182
@resized = true
183183
end
184-
if Reline::IOGate.win?
184+
if ENV.key?('RELINE_ALT_SCROLLBAR')
185+
@full_block = '::'
186+
@upper_half_block = "''"
187+
@lower_half_block = '..'
188+
@block_elem_width = 2
189+
elsif Reline::IOGate.win?
185190
@full_block = '█'
186191
@upper_half_block = '▀'
187192
@lower_half_block = '▄'

0 commit comments

Comments
 (0)