You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
White output unreadable on white background terminal #4673
I'd suggest that we let users configure a color scheme (maybe light or dark) in the global serverless config file (if present), so that the output color can be easily adjusted for light or dark terminal settings.
As these discussions very likely run into some religious discussions it would be good to have just both in 😃
I don't think a separate configuration file is needed, rather the default color should be used for normal messages. I might make a PR similar to how #508 was handled.
You can turn off the colors with the --no-color or --no-colors switch (I don't remember what was the correct one), e.g. for CI/CD servers.
BTW: Currently the errors are sent out to stdout, which is wrong and a PITA when scripting Serverless commands. It would be great, if we can send the errors to stderr correctly, turn colors off there (on stderr) but keep them on stdout.
I can use --no-color but it's a bit drastic. The distinction between the standard error and standard output is a valid point, but doesn't address the use case of a white background terminal.
I've created a pull request that removes explicit white coloring. As there is no output explicitly colored black, I see this as valid - both black on black and white on white would be unreadable.
Activity
HyperBrain commentedon Jan 21, 2018
Hi @koterpillar . Good point.
I'd suggest that we let users configure a color scheme (maybe light or dark) in the global serverless config file (if present), so that the output color can be easily adjusted for light or dark terminal settings.
As these discussions very likely run into some religious discussions it would be good to have just both in 😃
koterpillar commentedon Jan 21, 2018
I don't think a separate configuration file is needed, rather the default color should be used for normal messages. I might make a PR similar to how #508 was handled.
HyperBrain commentedon Jan 22, 2018
You can turn off the colors with the
--no-coloror--no-colorsswitch (I don't remember what was the correct one), e.g. for CI/CD servers.BTW: Currently the errors are sent out to stdout, which is wrong and a PITA when scripting Serverless commands. It would be great, if we can send the errors to stderr correctly, turn colors off there (on stderr) but keep them on stdout.
What do you think?
koterpillar commentedon Jan 29, 2018
I can use
--no-colorbut it's a bit drastic. The distinction between the standard error and standard output is a valid point, but doesn't address the use case of a white background terminal.I've created a pull request that removes explicit white coloring. As there is no output explicitly colored black, I see this as valid - both black on black and white on white would be unreadable.
HyperBrain commentedon Jan 29, 2018
@koterpillar I agree with your approach, removing the explicitly white coloring. You're right, that only the default text color should be used there.