C++ Logo

std-proposals

Advanced search

[std-proposals] Colored printing for std::print and std::println

From: Henrik Nyhammer <hsn95_at_[hidden]>
Date: Mon, 20 May 2024 03:57:33 +0000
Hi.
Now that std::format and std::print / std::println, based on the fmt library, has been added to the C++ standard library, wouldn't it be nice if the color and style features were also added?

https://fmt.dev/latest/api.html#color-api

Adding something like this would enable developers to create much more rich experiences with console applications and would also be very helpful for things such as printing errors in red and warnings in yellow to distinguish them more easily.

Received on 2024-05-20 03:57:37