Lines Matching refs:color

423 static char *hintsCallback(const char *buf, int *color, int *bold) {  in hintsCallback()  argument
441 *color = 90; in hintsCallback()
625 sds sdscatcolor(sds o, char *s, size_t len, char *color) { in sdscatcolor() argument
628 int bold = strstr(color,"bold") != NULL; in sdscatcolor()
630 if (strstr(color,"red")) ccode = 31; in sdscatcolor()
631 else if (strstr(color,"red")) ccode = 31; in sdscatcolor()
632 else if (strstr(color,"green")) ccode = 32; in sdscatcolor()
633 else if (strstr(color,"yellow")) ccode = 33; in sdscatcolor()
634 else if (strstr(color,"blue")) ccode = 34; in sdscatcolor()
635 else if (strstr(color,"magenta")) ccode = 35; in sdscatcolor()
636 else if (strstr(color,"cyan")) ccode = 36; in sdscatcolor()
637 else if (strstr(color,"white")) ccode = 37; in sdscatcolor()
648 char *color = "white"; in sdsCatColorizedLdbReply() local
650 if (strstr(s,"<debug>")) color = "bold"; in sdsCatColorizedLdbReply()
651 if (strstr(s,"<redis>")) color = "green"; in sdsCatColorizedLdbReply()
652 if (strstr(s,"<reply>")) color = "cyan"; in sdsCatColorizedLdbReply()
653 if (strstr(s,"<error>")) color = "red"; in sdsCatColorizedLdbReply()
654 if (strstr(s,"<hint>")) color = "bold"; in sdsCatColorizedLdbReply()
655 if (strstr(s,"<value>") || strstr(s,"<retval>")) color = "magenta"; in sdsCatColorizedLdbReply()
657 if (s[1] == '>') color = "yellow"; /* Current line. */ in sdsCatColorizedLdbReply()
658 else if (s[2] == '#') color = "bold"; /* Break point. */ in sdsCatColorizedLdbReply()
660 return sdscatcolor(o,s,len,color); in sdsCatColorizedLdbReply()
1541 int color = spectrum_palette[coloridx]; in showLatencyDistSamples() local
1542 printf("\033[48;5;%dm%c", (int)color, samples[j].character); in showLatencyDistSamples()