Releases: charmbracelet/colorprofile
v0.4.3
This release fixes an important issue where the writer when used as a middleware can cause short write errors.
Kudos to @abhinav for reporting this one.
Changelog
Fixed
- d085584: fix(writer): ensure Write returns the number of processed bytes (#75) (@aymanbagabas)
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v0.4.2
Fix detecting Windows Terminal when running bash.exe and other shells.
Changelog
Fixed
- cd2fcca: fix: detect bash running in windows terminal (#72) (@aymanbagabas)
- 3ef4032: fix: lint: use exec.CommandContext for tmux command (@aymanbagabas)
- 60b4b8a: fix: use bytes.SplitSeq instead of bytes.Split to reduce allocations (@aymanbagabas)
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v0.4.1
v0.4.0
Changelog
New!
- c955409: feat(examples): add colors example demonstrating ANSI color map (@aymanbagabas)
- 45f1520: feat: introduce Unknown profile and rename Ascii to ASCII with an alias (@aymanbagabas)
Fixed
- e0c1e60: fix(examples): colors: display color codes for basic and indexed colors (@aymanbagabas)
- d34a48e: fix: catch unknown profile values in Writer.Write (@aymanbagabas)
- 0df1d61: fix: lint deprecated style methods (@aymanbagabas)
- b05d982: fix: lint profile conversion fallthrough (@aymanbagabas)
Other stuff
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v0.3.3
Changelog
New!
- 08c61d2: feat: enhance tc support detection (#60) (@aymanbagabas)
Other stuff
- 1c12d76: ci: sync dependabot config (#54) (@charmcli)
- 88232a3: ci: sync dependabot config (#57) (@charmcli)
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v0.3.2
Changelog
Bug fixes
- 561b8ac: fix: avoid variable shadowing to properly cache color conversions (@aymanbagabas)
Documentation updates
- 4417188: docs: add contributing guidelines (#47) (@bashbunni)
Other work
- 8c9f0ba: ci: sync dependabot config (#44) (@charmcli)
- 0164c5a: ci: sync golangci-lint config (#46) (@github-actions[bot])
- 531ba36: ci: sync golangci-lint config (#51) (@github-actions[bot])
- f7fa2ac: perf: cache color conversion (#43) (@aymanbagabas)
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, Discord, Slack, The Fediverse.
v0.3.1
This release fixes an issue where COLORTERM gets evaluated whether TERM is defined. It also respects -direct terminal types and use true colors for those.
Changelog
Bug fixes
- fc2cc29: fix: ignore COLORTERM when no TERM is defined (@aymanbagabas)
- fbe498e: fix: lint issues (@aymanbagabas)
- 14c7056: fix: support direct color terminals (@aymanbagabas)
- 3e9edb6: fix: windows check should happen earlier in colorProfile (@aymanbagabas)
Other work
- 67a142c: ci: sync golangci-lint config (@aymanbagabas)
- ee84230: ci: sync golangci-lint config (#39) (@github-actions[bot])
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v0.3.0
You can now use TTY_FORCE=1 to force colorprofile programs to assume they're working with a TTY to force colors.
Changelog
New Features
- 324ca85: feat: skip tty check by environment variable (SKIP_TTY_CHECK) (@raphamorim)
- b6df488: feat: update go version to 1.23 (@raphamorim)
Bug fixes
- 9c2d5e8: fix: lint errors (#37) (@raphamorim)
Other work
- 06f135b: ci: sync golangci-lint config (@aymanbagabas)
- 839931a: remove toolchain definition (@raphamorim)
- 2f2fe5b: rename to isTTYForced (@raphamorim)
- d8f8eab: update naming (@raphamorim)
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v0.2.2
This fixes an issue where color parsing is using the wrong SGR style parameters to read the color.
Changelog
Other work
- 4d2873f: Fix style color parsing (@aymanbagabas)
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v0.2.1
This release fixes an issue determining the correct color profile based on the max value from environment, terminfo, and tmux.
Changelog
Bug fixes
- 3e49392: fix: color profile is the maximum of env, terminfo, and tmux (@aymanbagabas)
Other work
- c04db4e: ci: sync dependabot config (#29) (@charmcli)
- 20e9098: ci: sync dependabot config (#30) (@charmcli)
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.

