Lines Matching defs:fp
53 static int tc_printattr (FILE *fp, const char *attstr);
54 static int tc_color (FILE *fp, int color);
64 int tc_init (FILE *fp, const char *term)
100 if ( !istty (fp) )
165 tc_printattr (fp, is1);
167 tc_printattr (fp, is2);
173 int tc_init (FILE *fp, const char *term)
195 int tc_end (FILE *fp, const char *term)
200 // if ( r1 && *r1 ) tc_printattr (fp, r1);
202 tc_printattr (fp, r2);
208 int tc_end (FILE *fp, const char *term)
215 int tc_attr (FILE *fp, tc_att_t attr, int on)
223 len += tc_printattr (fp, bold_on);
225 len += tc_printattr (fp, italic_on);
228 len += tc_color (fp, attr & 0xFF);
233 len += fprintf (fp, "</font>");
235 len += tc_color (fp, TC_BLACK);
238 len += tc_printattr (fp, italic_off);
240 len += tc_printattr (fp, bold_off);
246 int tc_attr (FILE *fp, tc_att_t attr, int on)
262 static int tc_printattr (FILE *fp, const char *attstr)
264 tc_outfp = fp;
268 static int tc_printattr (FILE *fp, const char *attstr)
275 static int tc_color (FILE *fp, int color)
277 tc_outfp = fp;
284 static int tc_color (FILE *fp, int color)