Lines Matching refs:color

38  * Handles color emulation of SYS V curses
141 * Ensure that we use color pairs only when colors have been started, and also
170 * SVr4 curses is known to interchange color codes (1,4) and (3,6), possibly
191 CallDriver_3(SP_PARM, color, FALSE, bg, outc);
211 CallDriver_3(SP_PARM, color, TRUE, fg, outc);
255 * Reset the color pair, e.g., to whatever color pair 0 is.
275 * Reset color pairs and definitions. Actually we do both more to accommodate
277 * someone has changed the color definitions.
334 * Without ext-colors, we cannot represent more than 256 color pairs.
346 * allow for default-color as a component of a color-pair.
365 T(("started color: COLORS = %d, COLOR_PAIRS = %d",
428 * Extension (1997/1/18) - Allow negative f/b values to set default color
460 * Map caller's color number, e.g., -1, 0, 1, .., 7, etc., into
487 * Keep track of the number of entries in the color pair table which
488 * used a default color.
498 * terminal's color_pairs value for pairs using a default color.
500 * Note that updating a pair which used a default color with one
588 NCURSES_COLOR_T color,
598 color,
608 && (color >= 0 && OkColorHi(color))
611 SP_PARM->_color_table[color].init = 1;
612 SP_PARM->_color_table[color].r = r;
613 SP_PARM->_color_table[color].g = g;
614 SP_PARM->_color_table[color].b = b;
618 &SP_PARM->_color_table[color].red,
619 &SP_PARM->_color_table[color].green,
620 &SP_PARM->_color_table[color].blue);
622 SP_PARM->_color_table[color].red = r;
623 SP_PARM->_color_table[color].green = g;
624 SP_PARM->_color_table[color].blue = b;
628 CallDriver_4(SP_PARM, initcolor, color, r, g, b);
631 TPARM_4(initialize_color, color, r, g, b));
633 SP_PARM->_color_defs = max(color + 1, SP_PARM->_color_defs);
642 init_color(NCURSES_COLOR_T color,
647 return NCURSES_SP_NAME(init_color) (CURRENT_SCREEN, color, r, g, b);
705 NCURSES_COLOR_T color,
715 color,
725 if (color < 0 || !OkColorHi(color) || !SP_PARM->_coloron) {
728 NCURSES_COLOR_T c_r = SP_PARM->_color_table[color].red;
729 NCURSES_COLOR_T c_g = SP_PARM->_color_table[color].green;
730 NCURSES_COLOR_T c_b = SP_PARM->_color_table[color].blue;
740 color, c_r, c_g, c_b));
748 color_content(NCURSES_COLOR_T color,
753 return NCURSES_SP_NAME(color_content) (CURRENT_SCREEN, color, r, g, b);