Lines Matching defs:color

219     color,
220 internal::StringFromGTestEnv("color", "auto"),
2890 // Returns the character attribute for the given color.
2891 WORD GetColorAttribute(GTestColor color) {
2892 switch (color) {
2902 // Returns the ANSI color code for the given color. COLOR_DEFAULT is
2904 const char* GetAnsiColorCode(GTestColor color) {
2905 switch (color) {
2917 const char* const gtest_color = GTEST_FLAG(color).c_str();
2929 String::CStringEquals(term, "xterm-color") ||
2930 String::CStringEquals(term, "xterm-256color") ||
2932 String::CStringEquals(term, "screen-256color") ||
2934 String::CStringEquals(term, "tmux-256color") ||
2936 String::CStringEquals(term, "rxvt-unicode-256color") ||
2956 void ColoredPrintf(GTestColor color, const char* fmt, ...) {
2966 const bool use_color = in_color_mode && (color != COLOR_DEFAULT);
2980 // Gets the current text color.
2990 GetColorAttribute(color) | FOREGROUND_INTENSITY);
2994 // Restores the text color.
2997 printf("\033[0;3%sm", GetAnsiColorCode(color));
5115 // sequences can be used in the string to control the text color:
5118 // @R changes the color to red.
5119 // @G changes the color to green.
5120 // @Y changes the color to yellow.
5121 // @D changes to the default terminal text color.
5126 GTestColor color = COLOR_DEFAULT; // The current color.
5135 ColoredPrintf(color, "%s", str);
5139 ColoredPrintf(color, "%s", std::string(str, p).c_str());
5144 ColoredPrintf(color, "@");
5146 color = COLOR_DEFAULT;
5148 color = COLOR_RED;
5150 color = COLOR_GREEN;
5152 color = COLOR_YELLOW;
5185 " @G--" GTEST_FLAG_PREFIX_ "color=@Y(@Gyes@Y|@Gno@Y|@Gauto@Y)@D\n"
5215 "color=no@D or set\n"
5230 ParseStringFlag(arg, kColorFlag, &GTEST_FLAG(color)) ||