Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow fmt::format and friends to use colors #993

Closed
ghost opened this issue Dec 30, 2018 · 2 comments
Closed

Allow fmt::format and friends to use colors #993

ghost opened this issue Dec 30, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 30, 2018

Would it be possible to add a color specifier to fmt::format, fmt::vformat just like it is possible with fmt::print and fmt::vprint? I'm having an issue where I only want part of a string to be colored, so I'd like to wrap it in fmt::format and pass the colored result to a fmt::print, but currently that is not possible. I thought about changing it myself but it required more changes than expected and I don't fully know how the code works.

Great library, by the way!

@Naios
Copy link
Contributor

Naios commented Dec 30, 2018

Here we go #994, I'm looking forward for your feedback.

@ghost
Copy link
Author

ghost commented Jan 1, 2019

Perfect, thanks! That was way less code than I expected; it's a good thing you did it and not me. 😅

@vitaut vitaut closed this as completed in ae1de3a Jan 1, 2019
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

No branches or pull requests

1 participant