Lines Matching refs:fg
121 #define SET_FG_COLOR(fg) _settextcolor(fg)
123 #define SETCOLORS(fg,bg) { SET_FG_COLOR(fg); SET_BG_COLOR(bg); }
134 #define SET_FG_COLOR(fg) textcolor(fg)
136 #define SETCOLORS(fg,bg) { SET_FG_COLOR(fg); SET_BG_COLOR(bg); }
172 #define MAKEATTR(fg,bg) ((WORD)((fg)|((bg)<<4)))
175 #define SET_FG_COLOR(fg) { curr_attr &= ~0x0f; curr_attr |= (fg); APPLY_COLORS(); }
177 #define SETCOLORS(fg,bg) { curr_attr = MAKEATTR(fg,bg); APPLY_COLORS(); }
2506 * CV_4BIT: fg/bg values are OR of CV_{RGB} bits.
2507 * CV_6BIT: fg/bg values are integers entered by user.
2511 int fg;
2520 fg = parse_color4(str[0]);
2522 if (fg != CV_ERROR && bg != CV_ERROR)
2526 fg = parse_color6(&str);
2527 bg = (fg != CV_ERROR && *str++ == '.') ? parse_color6(&str) : CV_NOCHANGE;
2528 if (fg != CV_ERROR && bg != CV_ERROR)
2531 if (p_fg != NULL) *p_fg = fg;
2576 int fg;
2585 switch (parse_color(str, &fg, &bg))
2588 if (fg >= 0)
2589 tput_fmt(ESCS"[%dm", sgr_color(fg), f_putc);
2594 if (fg >= 0)
2595 tput_fmt(ESCS"[38;5;%dm", fg, f_putc);
2641 int fg;
2647 switch (parse_color(str, &fg, &bg))
2650 if (fg >= 0 && bg >= 0)
2652 SETCOLORS(fg, bg);
2654 } else if (fg >= 0)
2656 SET_FG_COLOR(fg);
2668 if (fg > 0)
2669 out = WIN32put_fmt(ESCS"[38;5;%dm", fg);
3000 public void WIN32setcolors(int fg, int bg)
3002 SETCOLORS(fg, bg);