Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !

Namespace: CppUtils::Terminal::Ansi

std::string formatSGR(const std::formattable<char> auto& code);

Formats an ANSI Select Graphic Rendition (SGR) escape sequence: \x1B[<code\>m.

Voir aussi : Select_Graphic_Rendition

ParamètreDescription
codeThe SGR parameter code (e.g. 0 for reset, 1 for bold, 31 for red, “38;2;r;g;b” for truecolor).

Retourne : The formatted ANSI escape string.