Lines Matching defs:color
1 /* $Header: /p/tcsh/cvsroot/tcsh/tw.color.c,v 1.27 2010/08/19 05:52:19 christos Exp $ */
3 * tw.color.c: builtin color ls-F
35 RCSID("$tcsh: tw.color.c,v 1.27 2010/08/19 05:52:19 christos Exp $")
59 Str color;
88 VAR(NOS, "rs", "0"), /* Reset to normal color */
103 Str color; /* color string */
189 variables[i].color = variables[i].defaultcolor;
226 case '*': /* :*ext=color: */
231 getstring(&c, &v, &e->color, ':');
237 default: /* :vl=color: */
245 getstring(&c, &v, &variables[i].color, ':');
267 put_color(const Str *color)
270 const char *c = color->s;
275 for (i = color->len; 0 < i; i--)
289 Str *color = &variables[VFile].color;
294 color = &variables[VDir].color;
304 color = &variables[i].color;
313 color = &extensions[i].color;
320 put_color(&variables[VLeft].color);
321 put_color(color);
322 put_color(&variables[VRight].color);
336 if (0 < variables[VEnd].color.len)
337 put_color(&variables[VEnd].color);
339 put_color(&variables[VLeft].color);
340 put_color(&variables[VNormal].color);
341 put_color(&variables[VRight].color);