Skip to content

Make Colorize.on_tty_only! the default behavior#15881

Merged
straight-shoota merged 5 commits intocrystal-lang:masterfrom
HertzDevil:feature/colorize-enabled-default
Jun 12, 2025
Merged

Make Colorize.on_tty_only! the default behavior#15881
straight-shoota merged 5 commits intocrystal-lang:masterfrom
HertzDevil:feature/colorize-enabled-default

Conversation

@HertzDevil
Copy link
Copy Markdown
Contributor

Originally part of #7690, this seems to be the more sensible behavior compared to ignoring non-terminal streams and $TERM. This does not deprecate .on_tty_only! because it is still useful after the default is overridden.

Effectively reverts #14258.

HertzDevil and others added 3 commits June 5, 2025 17:03
Co-authored-by: Johannes Müller <straightshoota@gmail.com>
@straight-shoota straight-shoota added this to the 1.17.0 milestone Jun 11, 2025
@straight-shoota straight-shoota merged commit 4581c8e into crystal-lang:master Jun 12, 2025
37 checks passed
@HertzDevil HertzDevil deleted the feature/colorize-enabled-default branch June 14, 2025 12:43
@straight-shoota straight-shoota added kind:breaking Intentional breaking change with significant impact. Shows up on top of the changelog. and removed kind:feature labels Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:breaking Intentional breaking change with significant impact. Shows up on top of the changelog. topic:stdlib

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants