Lines Matching +full:5 +full:bg
120 #define SET_BG_COLOR(bg) _setbkcolor(bg)
121 #define SETCOLORS(fg,bg) { SET_FG_COLOR(fg); SET_BG_COLOR(bg); }
133 #define SET_BG_COLOR(bg) textbackground(bg)
134 #define SETCOLORS(fg,bg) { SET_FG_COLOR(fg); SET_BG_COLOR(bg); }
158 #define MAKEATTR(fg,bg) ((WORD)((fg)|((bg)<<4)))
162 #define SET_BG_COLOR(bg) { curr_attr &= ~0xf0; curr_attr |= ((bg)<<4); APPLY_COLORS(); }
163 #define SETCOLORS(fg,bg) { curr_attr = MAKEATTR(fg,bg); APPLY_COLORS(); }
370 * 5. Signal-causing characters such as ctrl-C (interrupt),
435 case B150: ospeed = 5; break;
2503 * CV_4BIT: fg/bg values are OR of CV_{RGB} bits.
2504 * CV_6BIT: fg/bg values are integers entered by user.
2509 int bg = CV_ERROR;
2523 bg = CV_NOCHANGE;
2527 bg = parse_color4(str[1]);
2528 if (bg != CV_ERROR)
2529 str += 2; /* skip both fg and bg chars */
2532 if (fg != CV_ERROR && bg != CV_ERROR)
2540 bg = CV_NOCHANGE;
2544 bg = parse_color6(&str);
2547 if (fg != CV_ERROR && bg != CV_ERROR)
2566 if (p_bg != NULL) *p_bg = bg;
2625 int bg;
2634 switch (parse_color(str, &fg, &bg, &cattr))
2639 if (bg >= 0)
2640 tput_fmt(ESCS"[%dm", sgr_color(bg)+10, f_putc);
2645 tput_fmt(ESCS"[38;5;%dm", fg, f_putc);
2646 if (bg >= 0)
2647 tput_fmt(ESCS"[48;5;%dm", bg, f_putc);
2697 WIN32textout(ESCS"[5m", 4);
2706 int bg;
2712 switch (parse_color(str, &fg, &bg, &cattr))
2715 if (fg >= 0 && bg >= 0)
2717 SETCOLORS(fg, bg);
2723 } else if (bg >= 0)
2725 SET_BG_COLOR(bg);
2738 out = WIN32put_fmt(ESCS"[38;5;%dm", fg);
2739 if (bg > 0)
2740 out = WIN32put_fmt(ESCS"[48;5;%dm", bg);
3180 public void WIN32setcolors(int fg, int bg)
3182 SETCOLORS(fg, bg);