Lines Matching defs:newcolor
76 short newcolor = (short) PAIR_NUMBER(newmode & A_COLOR);
96 if (newcolor != 0) {
115 if (newcolor != oldcolor)
116 _change_color(newcolor, outc);
125 if (newcolor != oldcolor)
126 _change_color(newcolor, outc);
310 _change_color(short newcolor, int (*outc)(char))
321 if (newcolor == 0) {
334 /* check if both the foreground and background of newcolor match */
340 (void) tputs(tparm_p1(set_color_pair, newcolor), 1, outc);
345 if (ptp[newcolor].background != cur_pair->background) {
348 ptp[newcolor].background), 1, outc);
351 Oldcolors[ptp[newcolor].background]),
353 cur_pair->background = ptp[newcolor].background;
355 if (ptp[newcolor].foreground != cur_pair->foreground) {
358 ptp[newcolor].foreground), 1, outc);
361 Oldcolors[ptp[newcolor].foreground]),
363 cur_pair->foreground = ptp[newcolor].foreground;
379 back = ptp[newcolor].background;
380 fore = ptp[newcolor].foreground;