Skip to content

Allow to use fmt::println with colors and formatting#4782

Merged
vitaut merged 1 commit into
fmtlib:mainfrom
ahoarau:color-println-support
May 25, 2026
Merged

Allow to use fmt::println with colors and formatting#4782
vitaut merged 1 commit into
fmtlib:mainfrom
ahoarau:color-println-support

Conversation

@ahoarau
Copy link
Copy Markdown
Contributor

@ahoarau ahoarau commented May 18, 2026

Hi,
This PR simply adds the possibility to add colors and formatting while using fmt::println.
Example:

fmt::println(fmt::emphasis::bold | fg(fmt::color::red), "Hi!");

godbolt: https://godbolt.org/z/Ws511KPTz

@vitaut vitaut merged commit 0acf106 into fmtlib:main May 25, 2026
44 checks passed
@vitaut
Copy link
Copy Markdown
Contributor

vitaut commented May 25, 2026

Merged, thank you

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.

2 participants