зеркало из https://github.com/github/ruby.git
[ruby/reline] Add RELINE_ALT_SCROLLBAR env to use alternative text for scrollbar
The setting to use '::' instead of block elements. https://github.com/ruby/reline/commit/4afbc98e2c
This commit is contained in:
Родитель
e6ba2953e9
Коммит
9cb7ba2f21
|
@ -181,7 +181,12 @@ class Reline::LineEditor
|
|||
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 = '▄'
|
||||
|
|
Загрузка…
Ссылка в новой задаче