Disable colour output for non-terms or if NO_COLOR is set #29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "jamesoff/BSSG:feature/no-color"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Detect if stdout isn't a terminal, or if the
NO_COLORenvironment variable is set (to anything), and if so, don't set the colour variables.This is useful for e.g. running the build from inside vim, or (probably, not tested) in a build pipeline.
Oh let me know if you want me to rebase this on main so you can fast-forward it instead, I branched off the latest release tag. (Not sure if Forgejo can do that for you or not :)