Open mike-potter opened 4 years ago
Hi @mike-potter
Thanks for creating this issue. Would it be possible to share the name of the colour scheme that you use in your terminal and/or a screenshot of the problem? Most of us use terminals with dark colour schemes and we haven't encountered this problem, it's definitely something that we would have addressed earlier if we had experienced it.
Regarding disabling colour output altogether, as most unix tools pa11y-ci
uses a library to output colour that will detect it the tool is run on non-TTY contexts and disable colour output accordingly. So for example piping pa11y-ci's output through a command like cat will cause colour to be disabled automatically:
pa11y-ci 'https://www.example.com/' | cat
When running pa11y-ci locally in a terminal window with color enabled, the actual error messages are impossible to read if using a black background in Terminal (which is a common "dark mode" config these days)
For example:
Has the first line with the
•
in white, but has the error for the html in a very dark gray color.A bit ironic that the output of pa11y-ci itself isn't accessible ;)
I know you can't account for possible different terminal output color schemes, so mainly asking for either a "dark" scheme that just changes this dark-gray to a very light-grey, or a --no-color flag itself or something.
Right now I'm resorting to a script that changes my terminal settings before running pa11y then restoring them afterwards.
Forgive me if there is already some option for this, but couldn't find anything in searching or docs. Thanks!