Add color configuration support: --monochrome flag and NO_COLOR env var#230
Merged
kordianbruck merged 3 commits intomasterfrom Apr 11, 2026
Merged
Conversation
…nv var Agent-Logs-Url: https://github.com/schachmat/wego/sessions/8d215e1f-e852-416f-bf53-4bcb9765851a Co-authored-by: kordianbruck <298860+kordianbruck@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Change color settings to default to black
Add color configuration support: --emoji-monochrome flag and NO_COLOR env var
Apr 11, 2026
Collaborator
|
@copilot Please make both frontends just use |
Agent-Logs-Url: https://github.com/schachmat/wego/sessions/4d19c252-848e-44e9-8214-2ff0fe59a14a Co-authored-by: kordianbruck <298860+kordianbruck@users.noreply.github.com>
Contributor
Author
Done in ece35b6. Both frontends now share a single |
Copilot
AI
changed the title
Add color configuration support: --emoji-monochrome flag and NO_COLOR env var
Add color configuration support: --monochrome flag and NO_COLOR env var
Apr 11, 2026
kordianbruck
approved these changes
Apr 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Users had no documented way to disable or customize terminal colors in wego's output. There was no single, unified way to turn off colors across all frontends.
Description
frontends/colors.go: Added a package-levelmonochromevariable registered as a single shared--monochromeflag (viainit()), and anisMonochrome()helper that returnstruewhen--monochromeis set or theNO_COLORenv var is presentfrontends/ascii-art-table.go: Removed the old--aat-monochromeflag;Render()now callsisMonochrome()frontends/emoji.go: Removed the old--emoji-monochromeflag;Render()now callsisMonochrome()README.md: New Color Configuration section documenting both approachesTwo ways to disable colors:
# one-off override via env var NO_COLOR=1 wegoSteps for Testing
wegonormally — colored output unchangedwego --monochromeorwego --frontend emoji --monochrome— ANSI color codes stripped, plain text outputNO_COLOR=1 wegoandNO_COLOR=1 wego --frontend emoji— same result without flagsmonochrome=truein~/.wegorcand confirm it persists across runs for both frontendsScreenshots