* @brief Print a stylized header with the specified ANSI styles. * * @param text The text of the header. Will appear between two lines. * @param symbol The symbol to use for the lines. Default is '='. * @param codes The ANSI codes. Default is `ansi_separator`. */
| 425 | * @param codes The ANSI codes. Default is `ansi_separator`. |
| 426 | */ |
| 427 | void print_header(const std::string_view text, const char symbol = '=', const std::initializer_list<ansi> codes = ansi_separator) |
| 428 | { |
| 429 | const std::string separator(text.length(), symbol); |
| 430 | logln_ansi(codes, BS::synced_stream::flush, '\n', separator, '\n', text, '\n', separator); |
| 431 | } |
| 432 | |
| 433 | /** |
| 434 | * @brief Print a key followed by values with different ANSI styles. |
no test coverage detected