Skip to content

Add forced colorization mode - #954

Open
visrosa wants to merge 3 commits into
charmbracelet:masterfrom
visrosa:add_color_options
Open

Add forced colorization mode#954
visrosa wants to merge 3 commits into
charmbracelet:masterfrom
visrosa:add_color_options

Conversation

@visrosa

@visrosa visrosa commented May 23, 2026

Copy link
Copy Markdown
  • I have read CONTRIBUTING.md.
  • I have created a discussion that was approved by a maintainer (for new features). (Wrote it before knowing I had to)

This has been discussed in #440, #770 , #654, #552 and many other issues.

This seems to work well for preserving style and color when piped.

I did my best with the tests, hopefully it's not too iffy.

visrosa added 3 commits May 23, 2026 08:19
Adds --color=[auto|always]. Forces the renderer profile to TrueColor when color=always
Covers flag parsing, `shouldUseNoTTYStyle`, `resolveStyleForColorMode`
and `validateColorMode`
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.

1 participant