Lines Matching refs:color

39  * Handles color emulation of SYS V curses
164 * SVr4 curses is known to interchange color codes (1,4) and (3,6), possibly
262 /* find the number of bits needed for the maximum color value */
304 * Reset the color pair, e.g., to whatever color pair 0 is.
324 * Reset color pairs and definitions. Actually we do both more to accommodate
326 * someone has changed the color definitions.
382 * Without ext-colors, we cannot represent more than 256 color pairs.
394 * allow for default-color as a component of a color-pair.
424 T(("started color: COLORS = %d, COLOR_PAIRS = %d",
486 * Change all cells which use(d) a given color pair to force a repaint.
555 * Extension (1997/1/18) - Allow negative f/b values to set default color
582 * Map caller's color number, e.g., -1, 0, 1, .., 7, etc., into
609 * Keep track of the number of entries in the color pair table which
610 * used a default color.
620 * terminal's color_pairs value for pairs using a default color.
622 * Note that updating a pair which used a default color with one
706 _nc_init_color(SCREEN *sp, int color, int r, int g, int b)
713 color,
723 && (color >= 0 && OkColorHi(color))
726 sp->_color_table[color].init = 1;
727 sp->_color_table[color].r = r;
728 sp->_color_table[color].g = g;
729 sp->_color_table[color].b = b;
733 &sp->_color_table[color].red,
734 &sp->_color_table[color].green,
735 &sp->_color_table[color].blue);
737 sp->_color_table[color].red = r;
738 sp->_color_table[color].green = g;
739 sp->_color_table[color].blue = b;
743 CallDriver_4(sp, td_initcolor, color, r, g, b);
746 TIPARM_4(initialize_color, color, r, g, b));
748 sp->_color_defs = Max(color + 1, sp->_color_defs);
757 NCURSES_COLOR_T color,
762 return _nc_init_color(SP_PARM, color, r, g, b);
767 init_color(NCURSES_COLOR_T color,
772 return NCURSES_SP_NAME(init_color) (CURRENT_SCREEN, color, r, g, b);
829 _nc_color_content(SCREEN *sp, int color, int *r, int *g, int *b)
835 color,
843 if (color >= 0 && OkColorHi(color) && sp->_coloron) {
850 #define value_direct_color(max) (1000 * ((color >> bitoff) & max)) / max
867 c_r = sp->_color_table[color].red;
868 c_g = sp->_color_table[color].green;
869 c_b = sp->_color_table[color].blue;
880 color, c_r, c_g, c_b));
897 NCURSES_COLOR_T color,
903 int rc = _nc_color_content(SP_PARM, color, &my_r, &my_g, &my_b);
914 color_content(NCURSES_COLOR_T color,
919 return NCURSES_SP_NAME(color_content) (CURRENT_SCREEN, color, r, g, b);
1093 int color,
1096 return _nc_init_color(SP_PARM, color, r, g, b);
1101 int color,
1104 return _nc_color_content(SP_PARM, color, r, g, b);
1139 init_extended_color(int color, int r, int g, int b)
1142 color,
1147 extended_color_content(int color, int *r, int *g, int *b)
1150 color,