mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
36ca0e58b6
As pointed out in the [comment](https://github.com/ruby/reline/pull/413#issuecomment-1168033973), the code is actually a control sequence and not only for colors. To make the dialog color APIs safer to use, we should restrict its usages and extract away the bg/fg concept from the input. So in this commit, I made these changes: 1. The dialog_*_bg/fg_color APIs only takes and returns color names (symbol): - :black - :red - :green - :yellow - :blue - :magenta - :cyan - :white 2. Add additional dialog_*_bg/fg_color_sequence APIs to access the raw code. https://github.com/ruby/reline/commit/b32a977766 |
||
---|---|---|
.. | ||
key_actor | ||
unicode | ||
ansi.rb | ||
config.rb | ||
general_io.rb | ||
history.rb | ||
key_actor.rb | ||
key_stroke.rb | ||
kill_ring.rb | ||
line_editor.rb | ||
reline.gemspec | ||
terminfo.rb | ||
unicode.rb | ||
version.rb | ||
windows.rb |