Lines Matching full:fg
119 #define SET_FG_COLOR(fg) _settextcolor(fg)
121 #define SETCOLORS(fg,bg) { SET_FG_COLOR(fg); SET_BG_COLOR(bg); }
132 #define SET_FG_COLOR(fg) textcolor(fg)
134 #define SETCOLORS(fg,bg) { SET_FG_COLOR(fg); SET_BG_COLOR(bg); }
158 #define MAKEATTR(fg,bg) ((WORD)((fg)|((bg)<<4)))
161 #define SET_FG_COLOR(fg) { curr_attr &= ~0x0f; curr_attr |= (fg); APPLY_COLORS(); }
163 #define SETCOLORS(fg,bg) { curr_attr = MAKEATTR(fg,bg); APPLY_COLORS(); }
2503 * CV_4BIT: fg/bg values are OR of CV_{RGB} bits.
2504 * CV_6BIT: fg/bg values are integers entered by user.
2508 int fg;
2518 fg = parse_color4(*str);
2519 if (fg != CV_ERROR)
2524 str++; /* skip the fg char */
2529 str += 2; /* skip both fg and bg chars */
2532 if (fg != CV_ERROR && bg != CV_ERROR)
2536 fg = (*str == '.') ? CV_NOCHANGE : parse_color6(&str);
2537 if (fg != CV_ERROR)
2547 if (fg != CV_ERROR && bg != CV_ERROR)
2565 if (p_fg != NULL) *p_fg = fg;
2624 int fg;
2634 switch (parse_color(str, &fg, &bg, &cattr))
2637 if (fg >= 0)
2638 tput_fmt(ESCS"[%dm", sgr_color(fg), f_putc);
2644 if (fg >= 0)
2645 tput_fmt(ESCS"[38;5;%dm", fg, f_putc);
2705 int fg;
2712 switch (parse_color(str, &fg, &bg, &cattr))
2715 if (fg >= 0 && bg >= 0)
2717 SETCOLORS(fg, bg);
2719 } else if (fg >= 0)
2721 SET_FG_COLOR(fg);
2737 if (fg > 0)
2738 out = WIN32put_fmt(ESCS"[38;5;%dm", fg);
3180 public void WIN32setcolors(int fg, int bg)
3182 SETCOLORS(fg, bg);