[ruby/reline] Use color name instead of code (integer) in dialog color APIs
As pointed out in the comment, 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:
https://github.com/ruby/reline/commit/b32a977766
[ruby/reline] Use color name instead of code (integer) in dialog color APIs
As pointed out in the
comment,
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:
https://github.com/ruby/reline/commit/b32a977766