Formats a string and prints it to the specified file stream followed by a newline, using ANSI escape sequences to specify text formatting.

Synopsis

Declared in <fmt/color.h>

template<typename... T>
void
println(
    FILE* f,
    text_style ts,
    format_string<T...> fmt,
    T&&... args);

Description

Example:

fmt::println(fmt::emphasis::bold | fg(fmt::color::red), "Elapsed time: {0:.2f} seconds", 1.23);

Parameters

Name

Description

f

The file stream to print to.

ts

The text style to apply.

fmt

The format string.

args

The format arguments.

Created with MrDocs