When trying to set the background colour, I noticed that I wasn't able to use AnsiColor.black or any other of the static colours. Some further digging brought me to this line in the codebase which hides the AnsiColor class:
Also the AnsiColor class has set the static colours as private.
Describe the solution you'd like
Solution involves removing the hide clause and making the static colours public.
Describe alternatives you've considered
In the meantime I'm invoking AnsiColor directly and passing an integer for the colour, so AnsiColor(30) for black and AnsiColor(31) for red etc... I've made the changes and plan on raising a pull request shortly.
Hopefully it follows the guidelines for this project.
In the documentation section for colour coding we are given the following example for colour coding our text output:
When trying to set the background colour, I noticed that I wasn't able to use
AnsiColor.black
or any other of the static colours. Some further digging brought me to this line in the codebase which hides the AnsiColor class:Also the AnsiColor class has set the static colours as private.
Describe the solution you'd like Solution involves removing the hide clause and making the static colours public.
Describe alternatives you've considered In the meantime I'm invoking
AnsiColor
directly and passing an integer for the colour, soAnsiColor(30)
for black andAnsiColor(31)
for red etc... I've made the changes and plan on raising a pull request shortly.Hopefully it follows the guidelines for this project.