Lines Matching refs:bg
364 u_short bg, bgmask, fg, newbg;
368 * with only the bg changed, to the first preferred color that
369 * differs from both the fg and bg. If there is no such color,
373 bg = a & bgmask;
375 for (i = 0; i < nitems(scp->curs_attr.bg); i++) {
376 newbg = (scp->curs_attr.bg[i] << 12) & bgmask;
377 if (newbg != bg && newbg != (fg << 4))
380 if (i == nitems(scp->curs_attr.bg))
940 u_short bg, fg;
958 fg = bg = -1;
968 if (bg != col2) {
969 bg = col2;
971 outw(GDCIDX, bg | 0x00); /* set/reset */
975 c = readb(d); /* set bg color in the latch */
1082 c = readb(d); /* set bg color in the latch */