• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/

Lines Matching defs:color

58 /* A color in RGB format.  */
66 /* A color in HSV (a.k.a. HSB) format. */
74 /* Conversion of a color in RGB to HSV format. */
131 /* r = g = b. A grey color. */
180 /* Return the index of the color in a color table that is nearest to a given
181 color. */
202 /* Avoid converting a color to grey, or fading out a color too much. */
227 /* The luminance of a color. This is the brightness of the color, as it
228 appears to the human eye. This must be used in color to grey conversion. */
242 /* The color model used by the terminal. */
248 cm_xterm16, /* TERM=xterm-16color, with 16 colors. */
249 cm_xterm88, /* TERM=xterm-88color, with 88 colors. */
250 cm_xterm256 /* TERM=xterm-256color, with 256 colors. */
253 /* ----------------------- cm_monochrome color model ----------------------- */
255 /* A non-default color index doesn't exist in this color model. */
262 /* ------------------------ cm_common8 color model ------------------------ */
264 /* A non-default color index is in the range 0..7.
290 rgb_t color;
293 color.red = r; color.green = g; color.blue = b;
294 rgb_to_hsv (color, &hsv);
307 return nearest_color (color, colors_of_common8, 8);
310 /* Convert a cm_common8 color in RGB encoding to BGR encoding.
314 color_bgr (term_color_t color)
316 return ((color & 4) >> 2) | (color & 2) | ((color & 1) << 2);
319 /* ------------------------- cm_xterm8 color model ------------------------- */
321 /* A non-default color index is in the range 0..7.
348 rgb_t color;
351 color.red = r; color.green = g; color.blue = b;
352 rgb_to_hsv (color, &hsv);
365 return nearest_color (color, colors_of_xterm8, 8);
368 /* ------------------------ cm_xterm16 color model ------------------------ */
370 /* A non-default color index is in the range 0..15.
396 rgb_t color;
399 color.red = r; color.green = g; color.blue = b;
400 rgb_to_hsv (color, &hsv);
417 return nearest_color (color, colors_of_xterm16, 16);
420 /* ------------------------ cm_xterm88 color model ------------------------ */
422 /* A non-default color index is in the range 0..87.
423 Colors 0..15 are the same as in the cm_xterm16 color model.
522 rgb_t color;
525 color.red = r; color.green = g; color.blue = b;
526 rgb_to_hsv (color, &hsv);
561 return nearest_color (color, colors_of_xterm88, 88);
564 /* ------------------------ cm_xterm256 color model ------------------------ */
566 /* A non-default color index is in the range 0..255.
567 Colors 0..15 are the same as in the cm_xterm16 color model.
834 rgb_t color;
837 color.red = r; color.green = g; color.blue = b;
838 rgb_to_hsv (color, &hsv);
913 return nearest_color (color, colors_of_xterm256, 256);
932 BITFIELD_TYPE(term_color_t, signed int) color : 9;
961 if ((attr.color != COLOR_DEFAULT || attr.bgcolor != COLOR_DEFAULT)
965 we give preference to the color. */
974 attr.color = COLOR_DEFAULT;
1085 return (attr1.color == attr2.color
1122 back to a default color is to use stream->orig_pair. */
1123 if ((new_attr.color == COLOR_DEFAULT && old_attr.color != COLOR_DEFAULT)
1128 old_attr.color = COLOR_DEFAULT;
1151 has been output that may have cleared all attributes and all color
1191 if (new_attr.color != old_attr.color
1192 || (cleared_attributes && new_attr.color != COLOR_DEFAULT))
1195 assert (new_attr.color != COLOR_DEFAULT);
1199 assert (new_attr.color >= 0 && new_attr.color < 8);
1202 color_bgr (new_attr.color)),
1205 tputs (tparm (stream->set_foreground, new_attr.color),
1211 assert (new_attr.color >= 0 && new_attr.color < 8);
1215 bytes[2] = '3'; bytes[3] = '0' + new_attr.color;
1222 assert (new_attr.color >= 0 && new_attr.color < 16);
1226 if (new_attr.color < 8)
1228 bytes[2] = '3'; bytes[3] = '0' + new_attr.color;
1232 bytes[2] = '9'; bytes[3] = '0' + (new_attr.color - 8);
1240 assert (new_attr.color >= 0 && new_attr.color < 88);
1248 if (new_attr.color >= 10)
1249 *p++ = '0' + (new_attr.color / 10);
1250 *p++ = '0' + (new_attr.color % 10);
1257 assert (new_attr.color >= 0 && new_attr.color < 256);
1265 if (new_attr.color >= 100)
1266 *p++ = '0' + (new_attr.color / 100);
1267 if (new_attr.color >= 10)
1268 *p++ = '0' + ((new_attr.color % 100) / 10);
1269 *p++ = '0' + (new_attr.color % 10);
1414 default_attr.color = COLOR_DEFAULT;
1615 return stream->curr_attr.color;
1619 term_ostream__set_color (term_ostream_t stream, term_color_t color)
1621 stream->curr_attr.color = color;
1632 term_ostream__set_bgcolor (term_ostream_t stream, term_color_t color)
1634 stream->curr_attr.bgcolor = color;
1724 to the number of colors and the color escape sequences, whereas
1829 description of color capabilities of "xterm" and "xterms"
1831 color in xterm. So we provide the color capabilities here. */
1854 && (/* Recognize xterm-16color, xterm-88color, xterm-256color. */
1856 || /* Recognize rxvt-16color. */
1858 || /* Recognize konsole-16color. */
1884 stream->curr_attr.color = COLOR_DEFAULT;
1972 term_ostream_set_color (term_ostream_t first_arg, term_color_t color)
1976 vtable->set_color (first_arg,color);
1988 term_ostream_set_bgcolor (term_ostream_t first_arg, term_color_t color)
1992 vtable->set_bgcolor (first_arg,color);