morikuni / aec

Go wrapper for ANSI escape code
MIT License
92 stars 4 forks source link

[Feature] Add direct support for the NO_COLOR and COLORTERM environment variable into **aec** #3

Open spkane opened 1 year ago

spkane commented 1 year ago

It would be great if aec was designed to automatically honor the NO_COLOR env var (as defined here: https://no-color.org/) when it is set, so that people can turn off colors in their environment and this logic does not have to be re-implemented in any project that uses aec and wants this sort of behavior.

COLORTERM (see: https://jdebp.uk/Softwares/nosh/guide/TerminalCapabilities.html) is also used sometimes to define the color capabilities of a terminal and might be useful to implement in aec as well.

spkane commented 1 year ago

This is an example use case where NO_COLOR needs to be implemented outside aec.