|
Pretty Diagnostics
Create your own pretty diagnostics
|
#include <ostream>Go to the source code of this file.
Data Structures | |
| struct | pretty_diagnostics::color::SyledText< N > |
| Holds a piece of text together with one or more ANSI style codes. More... | |
Namespaces | |
| namespace | pretty_diagnostics |
| namespace | pretty_diagnostics::color |
Functions | |
| std::ostream & | pretty_diagnostics::color::operator<< (std::ostream &os, Code code) |
| Outputs a single ANSI escape code to the given stream. More... | |
| template<std::size_t N> | |
| std::ostream & | pretty_diagnostics::color::operator<< (std::ostream &os, const SyledText< N > &text) |
| Outputs styled text to the given stream. More... | |
| template<typename... Codes> requires (std::conjunction_v<std::is_same<Codes, Code>...>) | |
| SyledText< sizeof...(Codes)> | pretty_diagnostics::color::STYLE (std::string_view text, Codes... codes) |
| Creates a styled text object from a text and a set of ANSI codes. More... | |
| int | pretty_diagnostics::color::color_enabled_index () |
Returns a unique std::ios_base::xalloc index used to store per-stream color enable state. More... | |
| void | pretty_diagnostics::color::set_color_enabled (std::ostream &os, bool enabled) |
| Enables or disables color output for a specific output stream. More... | |
| bool | pretty_diagnostics::color::is_color_enabled (std::ostream &os) |
| Checks whether color output is enabled for the given stream. More... | |
| bool | pretty_diagnostics::color::is_colorable (const std::ostream &os) |
| Checks whether the given output stream supports colored output. More... | |
| void | pretty_diagnostics::color::auto_enable_color (std::ostream &os) |
| Enables or disables color output for a stream based on its capability. More... | |