-
Notifications
You must be signed in to change notification settings - Fork 22
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
Feature Request: Easy method for disabling color output #449
Comments
I managed to work around it using Setting |
You can override the existing default colors like this. Since its typescript all the existing colors can be found easily for autofilling.
|
I don't see any vast application of having a feature to disable all colors quickly. Since there is already a |
@ayonious Unfortunately, a custom color map means that an update to the built-in could cause my output to contain unexpected results. In my case, I'm using the library to generate console tables by default and Markdown tables as an option. This works great except for the color codes. While I did find the workaround, a built-in at table creation time would be a nice feature. |
I wont enhance the Default colors much, so dont worry about that. Its meant to help people on simplest cases. So feel free to disable them one by one. If this feature is requested by more people I will take a look at this. |
On Another thought this is an interesting feature that can also help here: |
@ayonious Because color looks like garbage in CI/CD:
|
Makes total sense it will be priotized soon and I will work on this soon. Any PR is welcome |
I was thinking about that. Do you think a color: false opt would be appropriate? If so I might be able to make that happen. Since I ended up moving the formatting code to a library we have for build-time operations, I imported a library that detects if the terminal supports color and I am overriding the colorMap one way if not, and another (eliminating white, which is illegible on an OS X default terminal color scheme) if it does. I don't think you want to sprout a new dep just for this, yeah? |
@trevor-vaughan this work for you? |
Sorry for delayed response @jdmarshall
Ya I would not add another dependency just for this. And for the var I just commented on the PR you made. Thanks a lot for your contribution :) |
I would like to be able to easily disable all colors when printing a table.
Something like
colorMap: false
orcolorMap: {}
would be great.The text was updated successfully, but these errors were encountered: