-
Notifications
You must be signed in to change notification settings - Fork 8
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
How do I turn off colours? #4
Comments
regarding point 1, for now I think a good setup would be to introduce a cli option that turns off the colors, I will have to see how I will work this out, for point 2 and the rest, I agree there's a general assumption that everyone uses dark mode terminals, however I think any thing in the vicinity of "working around a light/dark mode" of sorts for a terminal application will require intentionality in design to remedy, I don't believe there's a generalizable way of working around a white background terminal, however I'm interested in making this work so I'll prioritize this (most likely this will also be a cli option) |
Try running with NO_COLOR=1. Most likely the library used for coloring understands that. See https://no-color.org/. |
Yes, it does remove the colours. Maybe there is another magical environment variable to map lighter colours to darker ones for light backgrounds? |
I am not aware of any such consensus. There's You should consider changing your terminal color palette so that "bright" colors are actually darker, that would work for all programs using 3/4-bit colors. |
I agree with this point. I definitely prefer the colorized output but for light background terminals it would be more readable if the main foreground text color was black: It shouldn't be too difficult to detect the color of the terminal background, eg. https://github.com/dalance/termbg alternatively, having table output might be good enough to make |
Thanks for the crate recommendation @chapmanjacobd |
P. S. Multiple Rust tools that use coloured terminal output seem to assume black background by default and look poor in my setup. Maybe there is a cross-app way (e.g. a environment variable) to notify all the programs that the background is white?
The text was updated successfully, but these errors were encountered: