Class for colors manipulating in terminal.
More...
#include <terminal_color.h>
|
| void | write (FILE *pStream) const |
| | Write terminal color to the specified stream. More...
|
| |
Class for colors manipulating in terminal.
Always check which colors are available in your machine, for ex. with qx::terminal_color::test_colors()
- Author
- Khrapov
- Date
- 13.12.2022
static constexpr terminal_color reset() noexcept
Reset all colors.
static constexpr terminal_color font(const color &fontColor) noexcept
Set font color.
Definition at line 45 of file terminal_color.h.
◆ back()
Set background color.
- Parameters
-
| bgColor | - new background color |
- Return values
-
Definition at line 51 of file terminal_color.inl.
◆ font()
Set font color.
- Parameters
-
| fontColor | - new font color |
- Return values
-
Definition at line 46 of file terminal_color.inl.
◆ reset()
◆ write()
| void qx::terminal_color::write |
( |
FILE * |
pStream | ) |
const |
|
inline |
Write terminal color to the specified stream.
- Parameters
-
| pStream | - stream (std::stdout or std::stderr) |
Definition at line 61 of file terminal_color.inl.
The documentation for this class was generated from the following files: