Lines Matching refs:color
3 ** tcap.c -- termcap color capabilities
9 ** Feb 2010 color capabilities added
54 static int tc_color (FILE *fp, int color);
72 /* clear all color strings */
88 snprintf (colortab[TC_BLACK], sizeof colortab[0], "<font color=black>");
89 snprintf (colortab[TC_BLUE], sizeof colortab[0], "<font color=blue>");
90 snprintf (colortab[TC_GREEN], sizeof colortab[0], "<font color=green>");
91 snprintf (colortab[TC_CYAN], sizeof colortab[0], "<font color=cyan>");
92 snprintf (colortab[TC_RED], sizeof colortab[0], "<font color=red>");
93 snprintf (colortab[TC_MAGENTA], sizeof colortab[0], "<font color=magenta>");
94 snprintf (colortab[TC_YELLOW], sizeof colortab[0], "<font color=yellow>");
95 snprintf (colortab[TC_WHITE], sizeof colortab[0], "<font color=white>");
146 if ( (af = tgetstr ("AF", &ap)) ) /* set ansi color foreground */
151 else if ( (af = tgetstr ("Sf", &ap)) ) /* or set color foreground */
275 static int tc_color (FILE *fp, int color)
279 if ( color < 0 || color >= maxcolor )
281 return tputs (colortab[color], 0, put);
284 static int tc_color (FILE *fp, int color)