• 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

55 /* A color in RGB format.  */
63 /* A color in HSV (a.k.a. HSB) format. */
71 /* Conversion of a color in RGB to HSV format. */
128 /* r = g = b. A grey color. */
177 /* Return the index of the color in a color table that is nearest to a given
178 color. */
199 /* Avoid converting a color to grey, or fading out a color too much. */
224 /* The luminance of a color. This is the brightness of the color, as it
225 appears to the human eye. This must be used in color to grey conversion. */
239 /* The color model used by the terminal. */
245 cm_xterm16, /* TERM=xterm-16color, with 16 colors. */
246 cm_xterm88, /* TERM=xterm-88color, with 88 colors. */
247 cm_xterm256 /* TERM=xterm-256color, with 256 colors. */
250 /* ----------------------- cm_monochrome color model ----------------------- */
252 /* A non-default color index doesn't exist in this color model. */
259 /* ------------------------ cm_common8 color model ------------------------ */
261 /* A non-default color index is in the range 0..7.
287 rgb_t color;
290 color.red = r; color.green = g; color.blue = b;
291 rgb_to_hsv (color, &hsv);
304 return nearest_color (color, colors_of_common8, 8);
307 /* Convert a cm_common8 color in RGB encoding to BGR encoding.
311 color_bgr (term_color_t color)
313 return ((color & 4) >> 2) | (color & 2) | ((color & 1) << 2);
316 /* ------------------------- cm_xterm8 color model ------------------------- */
318 /* A non-default color index is in the range 0..7.
345 rgb_t color;
348 color.red = r; color.green = g; color.blue = b;
349 rgb_to_hsv (color, &hsv);
362 return nearest_color (color, colors_of_xterm8, 8);
365 /* ------------------------ cm_xterm16 color model ------------------------ */
367 /* A non-default color index is in the range 0..15.
393 rgb_t color;
396 color.red = r; color.green = g; color.blue = b;
397 rgb_to_hsv (color, &hsv);
414 return nearest_color (color, colors_of_xterm16, 16);
417 /* ------------------------ cm_xterm88 color model ------------------------ */
419 /* A non-default color index is in the range 0..87.
420 Colors 0..15 are the same as in the cm_xterm16 color model.
519 rgb_t color;
522 color.red = r; color.green = g; color.blue = b;
523 rgb_to_hsv (color, &hsv);
558 return nearest_color (color, colors_of_xterm88, 88);
561 /* ------------------------ cm_xterm256 color model ------------------------ */
563 /* A non-default color index is in the range 0..255.
564 Colors 0..15 are the same as in the cm_xterm16 color model.
831 rgb_t color;
834 color.red = r; color.green = g; color.blue = b;
835 rgb_to_hsv (color, &hsv);
910 return nearest_color (color, colors_of_xterm256, 256);
929 BITFIELD_TYPE(term_color_t, signed int) color : 9;
984 if ((attr.color != COLOR_DEFAULT || attr.bgcolor != COLOR_DEFAULT)
988 we give preference to the color. */
997 attr.color = COLOR_DEFAULT;
1108 return (attr1.color == attr2.color
1145 back to a default color is to use stream->orig_pair. */
1146 if ((new_attr.color == COLOR_DEFAULT && old_attr.color != COLOR_DEFAULT)
1151 old_attr.color = COLOR_DEFAULT;
1174 has been output that may have cleared all attributes and all color
1214 if (new_attr.color != old_attr.color
1215 || (cleared_attributes && new_attr.color != COLOR_DEFAULT))
1218 assert (new_attr.color != COLOR_DEFAULT);
1222 assert (new_attr.color >= 0 && new_attr.color < 8);
1225 color_bgr (new_attr.color)),
1228 tputs (tparm (stream->set_foreground, new_attr.color),
1234 assert (new_attr.color >= 0 && new_attr.color < 8);
1238 bytes[2] = '3'; bytes[3] = '0' + new_attr.color;
1245 assert (new_attr.color >= 0 && new_attr.color < 16);
1249 if (new_attr.color < 8)
1251 bytes[2] = '3'; bytes[3] = '0' + new_attr.color;
1255 bytes[2] = '9'; bytes[3] = '0' + (new_attr.color - 8);
1263 assert (new_attr.color >= 0 && new_attr.color < 88);
1271 if (new_attr.color >= 10)
1272 *p++ = '0' + (new_attr.color / 10);
1273 *p++ = '0' + (new_attr.color % 10);
1280 assert (new_attr.color >= 0 && new_attr.color < 256);
1288 if (new_attr.color >= 100)
1289 *p++ = '0' + (new_attr.color / 100);
1290 if (new_attr.color >= 10)
1291 *p++ = '0' + ((new_attr.color % 100) / 10);
1292 *p++ = '0' + (new_attr.color % 10);
1437 default_attr.color = COLOR_DEFAULT;
1638 return stream->curr_attr.color;
1642 term_ostream::set_color (term_ostream_t stream, term_color_t color)
1644 stream->curr_attr.color = color;
1655 term_ostream::set_bgcolor (term_ostream_t stream, term_color_t color)
1657 stream->curr_attr.bgcolor = color;
1747 to the number of colors and the color escape sequences, whereas
1852 description of color capabilities of "xterm" and "xterms"
1854 color in xterm. So we provide the color capabilities here. */
1877 && (/* Recognize xterm-16color, xterm-88color, xterm-256color. */
1879 || /* Recognize rxvt-16color. */
1881 || /* Recognize konsole-16color. */
1907 stream->curr_attr.color = COLOR_DEFAULT;