Searched refs:em_codes (Results 1 – 1 of 1) sorted by relevance
393 uint8_t em_codes[4] = {}; in ansi_color_escape() local395 if (em_bits & static_cast<uint8_t>(emphasis::bold)) em_codes[0] = 1; in ansi_color_escape()396 if (em_bits & static_cast<uint8_t>(emphasis::italic)) em_codes[1] = 3; in ansi_color_escape()397 if (em_bits & static_cast<uint8_t>(emphasis::underline)) em_codes[2] = 4; in ansi_color_escape()399 em_codes[3] = 9; in ansi_color_escape()403 if (!em_codes[i]) continue; in ansi_color_escape()406 buffer[index++] = static_cast<Char>('0' + em_codes[i]); in ansi_color_escape()