4 ms·
Implementing a flag like COLOR=light|dark|none puts the onus on application developers to interpret the user's configuration. I think it would be more reasonab
by Udo 5y ago
Implementing a flag like COLOR=light|dark|none puts the onus on application developers to interpret the user's configuration.
I think it would be more reasonable to define a standard set of environment variables based on semantics that can then be used explicitly by scripts and programs. Like CL_WARN=(code for red) CL_HILIGHT=(code for yellow) CL_OPTIONAL=(code for gray). This would make it very easy on script developers, who would only need to use these variables instead of their hard-coded ones.