ANSI colour codes, because every library eventually grows to the point of needing colour logging. More...
Classes | |
| struct | sp::fmt |
| Formatting (bold, underline, etc.) More... | |
| struct | sp::fg |
| Foreground colours. More... | |
| struct | sp::bg |
| Background colours. More... | |
Macros | |
| #define | FMT_FUNC_(DOC_NAME, NAME, ON, OFF) |
| #define | FMT_FUNC(NAME, ON, OFF) FMT_FUNC_(NAME, NAME, ON, OFF) |
| #define | FG_COLOUR(NAME, ON) FMT_FUNC_(foreground, NAME, ON, 39) |
| #define | BG_COLOUR(NAME, ON) FMT_FUNC_(background, NAME, ON, 49) |
ANSI colour codes, because every library eventually grows to the point of needing colour logging.
Harvested from here: https://misc.flogisoft.com/bash/tip_colors_and_formatting
| #define FMT_FUNC_ | ( | DOC_NAME, | |
| NAME, | |||
| ON, | |||
| OFF | |||
| ) |