Lines Matching refs:bg
1062 show_color_attr(int fg, int bg, int tx)
1065 printw(" Colors (fg %d, bg %d", fg, bg);
1073 cycle_color_attr(int ch, int *fg, int *bg, int *tx)
1086 *bg = (*bg + 1);
1089 *bg = (*bg - 1);
1106 if (*bg >= COLORS)
1107 *bg = min_colors;
1108 if (*bg < min_colors)
1109 *bg = COLORS - 1;
1238 attr_getc(int *skip, int *fg, int *bg, int *tx, int *ac, unsigned *kc)
1291 error = cycle_color_attr(ch, fg, bg, tx);
1306 int bg = COLOR_BLACK;
1324 int pair = (fg != COLOR_BLACK || bg != COLOR_BLACK);
1327 if (init_pair(pair, fg, bg) == ERR) {
1335 if (init_pair(pair, tx, bg) == ERR) {
1361 show_color_attr(fg, bg, tx);
1365 } while (attr_getc(&n, &fg, &bg, &tx, &ac, &k));
1514 wide_attr_getc(int *skip, int *fg, int *bg, int *tx, int *ac, unsigned *kc)
1567 error = cycle_color_attr(ch, fg, bg, tx);
1582 int bg = COLOR_BLACK;
1600 pair = (fg != COLOR_BLACK || bg != COLOR_BLACK);
1603 if (init_pair(pair, fg, bg) == ERR) {
1610 if (init_pair(extras, tx, bg) == ERR) {
1634 show_color_attr(fg, bg, tx);
1638 } while (wide_attr_getc(&n, &fg, &bg, &tx, &ac, &k));
2331 short bg = COLOR_WHITE;
2345 init_pair(1, bg, fg);
2348 mvprintw(SLK_WORK, 0, "Colors %d/%d\n", fg, bg);
2426 bg = (bg + 1) % COLORS;
2453 short bg = COLOR_WHITE;
2462 init_pair(1, bg, fg);
2465 mvprintw(SLK_WORK, 0, "Colors %d/%d\n", fg, bg);
2562 bg = (bg + 1) % COLORS;
3681 int bg = color;
3682 init_pair(color, fg, bg);