-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colour code text output for clarity #1895
Comments
We can, but I need some details. Error red, success white, hint blue? Some of them are already used by the logger. |
From a quick search there are a couple of considerations to think of went playing with colours in console apps (asides from accessibility). Most modern terminals support AINSI colors, but not all (windows cmd host didn't support it until a couple of years ago). Regardless of the colours we pick, the terminal might/should remap them to a visible colour with its theme. It's not the job of the console app (in fact we don't have access to the terminal theming information) e.g. if we decide to write something in black and the background is black, the terminal should map black characters to something like a grey or another colour so the user can see what's being written. With that in mind, we also need to consider we have logging in place with ILogger, and maybe one day tracing if we implement #1486 on top of Console.Write.
My suggestion is to keep that colour scheme for the logger and use the following scheme for Console.Write messages:
Thoughts? |
Yes. Completely agree with the colour suggestions. |
Signed-off-by: Vincent Biret <[email protected]>
- fixes #1895 adds a colours scheme for console messages
The output from commands, while helpful, can be challenging to read in some cases.

Could we consider colour coding different types of response output?
The text was updated successfully, but these errors were encountered: