Skip to content

Support standard environment variables for ANSI terminal output#6362

Merged
bentsherman merged 8 commits intonextflow-io:masterfrom
ewels:ansi-env-force-width
Aug 25, 2025
Merged

Support standard environment variables for ANSI terminal output#6362
bentsherman merged 8 commits intonextflow-io:masterfrom
ewels:ansi-env-force-width

Conversation

@ewels
Copy link
Member

@ewels ewels commented Aug 22, 2025

Support NO_COLOR and TERMINAL_WIDTH to control ANSI output from Nextflow.

These are standard environment vars already supported by other tools. They are important for accessibility reasons.
See https://no-color.org/

Follows on from #4573

@ewels ewels requested a review from a team as a code owner August 22, 2025 19:14
@netlify
Copy link

netlify bot commented Aug 22, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit b2abcac
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/68ac5c14ebee750008b5b0d6

Copy link

@juanesarango juanesarango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
Thanks for implementing this so fast.

ewels added 2 commits August 22, 2025 22:28
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
@ewels ewels force-pushed the ansi-env-force-width branch from c79cf11 to 88f5b09 Compare August 22, 2025 20:28
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
@ewels ewels force-pushed the ansi-env-force-width branch from 7dcbb26 to 0248c08 Compare August 23, 2025 21:28
pditommaso and others added 2 commits August 24, 2025 16:01
- Replace direct System.getenv() calls with SysEnv.get() for consistency
- Improve TERMINAL_WIDTH parsing error handling in AnsiLogObserver
- Simplify NO_COLOR validation logic
- Clean up imports and static references

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Copy link
Member

@pditommaso pditommaso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleaned up a bit

Copy link
Collaborator

@christopher-hakkaart christopher-hakkaart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found some of the description unclear. I've made some suggestions.

Co-authored-by: Chris Hakkaart <chris.hakkaart@seqera.io>
Signed-off-by: Phil Ewels <phil.ewels@seqera.io>
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
@bentsherman bentsherman force-pushed the ansi-env-force-width branch from 17c5ddb to b2abcac Compare August 25, 2025 12:50
@bentsherman bentsherman merged commit ede1344 into nextflow-io:master Aug 25, 2025
10 checks passed
@ewels ewels deleted the ansi-env-force-width branch August 26, 2025 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants