Disable colour output for non-terms or if NO_COLOR is set #29

Merged
stefano merged 1 commit from jamesoff/BSSG:feature/no-color into main 2025-06-24 07:46:06 +02:00
Contributor

Detect if stdout isn't a terminal, or if the NO_COLOR environment 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.

Detect if stdout isn't a terminal, or if the `NO_COLOR` environment 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.
jamesoff added 1 commit 2025-06-23 12:39:23 +02:00
Author
Contributor

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 :)

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 :)
stefano merged commit c43a6c3cb8 into main 2025-06-24 07:46:06 +02:00
stefano deleted branch feature/no-color 2025-06-24 07:46:07 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: stefano/BSSG#29
No description provided.