Skip to content

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

Open
ahoarau wants to merge 1 commit into
fmtlib:mainfrom
ahoarau:color-println-support
Open

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

Conversation

@ahoarau
Copy link
Copy Markdown

@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

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