|
termstyle 1.0.0-pre.3
An open-source C++ header file that enables developers to easily define and apply customizable style presets for terminal outputs such as warnings, infos, and errors.
|
Classes | |
| class | termstyle::StyledCout |
| A class that provides styled output to the standard output stream. More... | |
Functions | |
| void | termstyle::print (std::string preset, std::string text="") |
| StyledCout | termstyle::style (const std::string &preset) |
Content related to using presets.
| void termstyle::print | ( | std::string | preset, |
| std::string | text = "" ) |
Prints the specified text using the given preset style.
| preset | The preset style to apply to the text. |
| text | The text to be printed. If not provided, an empty string will be printed. |
| StyledCout termstyle::style | ( | const std::string & | preset | ) |
Applies a specific style preset to the output stream.
| preset | The name of the style preset to apply. |
StyledCout object that can be used to chain additional styling or output operations.