/freebsd-13-stable/contrib/ncurses/ncurses/base/ |
H A D | lib_dft_fgbg.c | 67 NCURSES_SP_NAME(assume_default_colors) (NCURSES_SP_DCLx int fg, int bg) argument 71 T((T_CALLED("assume_default_colors(%p,%d,%d)"), (void *) SP_PARM, fg, bg)); 74 code = CallDriver_2(SP_PARM, td_defaultcolors, fg, bg); 78 SP_PARM->_default_color = isDefaultColor(fg) || isDefaultColor(bg); 81 SP_PARM->_default_bg = isDefaultColor(bg) ? COLOR_DEFAULT : bg; 86 init_pair(0, (short) fg, (short) bg); 98 assume_default_colors(int fg, int bg) argument 100 return NCURSES_SP_NAME(assume_default_colors) (CURRENT_SCREEN, fg, bg);
|
H A D | new_pair.c | 139 ? (p->bg - q->bg) 144 _nc_find_color_pair(SCREEN *sp, int fg, int bg) argument 151 find.bg = bg; 205 (last->fg != next->fg || last->bg != next->bg)) { 257 NCURSES_SP_NAME(alloc_pair) (NCURSES_SP_DCLx int fg, int bg) argument 261 T((T_CALLED("alloc_pair(%d,%d)"), fg, bg)); 264 } else if ((pair = _nc_find_color_pair(SP_PARM, fg, bg)) < 320 find_pair(NCURSES_SP_DCLx int fg, int bg) argument [all...] |
H A D | lib_color.c | 185 set_background_color(NCURSES_SP_DCLx int bg, NCURSES_SP_OUTC outc) argument 188 CallDriver_3(SP_PARM, td_color, FALSE, bg, outc); 193 TPARM_1(set_a_background, bg), 198 TPARM_1(set_background, toggled_colors(bg)), 669 ("initializing pair: pair = %d, fg=(%d,%d,%d), bg=(%d,%d,%d)", 937 int bg; local 941 bg = BACK_OF(sp->_color_pairs[pair]); 945 if (isDefaultColor(bg)) 946 bg = -1; 952 *b = bg; [all...] |
H A D | lib_set_term.c | 446 int fg, bg; local 448 int count = sscanf(env, "%d%c%d%c", &fg, &sep1, &bg, &sep2); 452 sp->_default_bg = ((bg >= 0 && bg < MaxColors) ? bg : COLOR_DEFAULT); 455 ("from environment assumed fg=%d, bg=%d", 474 TR(TRACE_CHARPUT | TRACE_MOVE, ("decoded fg=%d, bg=%d",
|
/freebsd-13-stable/contrib/ncurses/ncurses/ |
H A D | new_pair.h | 87 int bg; member in struct:_color_pairs 96 #define MakeColorPair(target,f,b) target.fg = f, target.bg = b 97 #define isSamePair(a,b) ((a).fg == (b).fg && (a).bg == (b).bg) 99 #define BACK_OF(c) (c).bg
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Process.h | 194 static const char *OutputColor(char c, bool bold, bool bg); 197 static const char *OutputBold(bool bg);
|
/freebsd-13-stable/contrib/less/ |
H A D | output.c | 101 static int fg, fgi, bg, bgi; local 123 if (fg == 0 && bg == 0) 127 bg = nm_bg_color & 7; 158 bg = nm_bg_color & 7; 208 bg = nm_bg_color & 7; 273 bg = screen_color[code - 40]; 276 case 49: /* default bg */ 277 bg = nm_bg_color & 7; 296 f = bg | bgi; 301 b = bg | bg [all...] |
H A D | screen.c | 112 #define SET_BG_COLOR(bg) _setbkcolor(bg) 113 #define SETCOLORS(fg,bg) { SET_FG_COLOR(fg); SET_BG_COLOR(bg); } 125 #define SET_BG_COLOR(bg) textbackground(bg) 126 #define SETCOLORS(fg,bg) { SET_FG_COLOR(fg); SET_BG_COLOR(bg); } 158 #define MAKEATTR(fg,bg) ((WORD)((fg)|((bg)<< 2469 int bg; local 2543 int bg; local 2622 int bg; local [all...] |
H A D | optfunc.c | 551 int fg, bg; local 567 if (parse_color(s, &fg, &bg) == CT_NULL) 576 if (bg == CV_NOCHANGE) 577 bg = nm_bg_color; 582 *bg_color = bg;
|
/freebsd-13-stable/sys/teken/ |
H A D | teken_subr_compat.h | 89 teken_get_defattr_cons25(const teken_t *t, int *fg, int *bg) argument 95 *bg = cons25_revcolors[teken_256to8(t->t_defattr.ta_bgcolor)];
|
/freebsd-13-stable/sys/dev/syscons/ |
H A D | scterm-sc.c | 53 u_short bg; /* background color */ member in struct:__anon14368 142 tcp->dflt_std_color.bg = (SC_NORM_ATTR >> 4) & 0x0f; 144 tcp->dflt_rev_color.bg = (SC_NORM_REV_ATTR >> 4) & 0x0f; 457 case 40: case 41: /* set ansi bg color */ 461 tcp->cur_color.bg = ansi_col[n - 40]; 464 case 49: /* restore bg color back to normal */ 466 tcp->cur_color.bg = tcp->std_color.bg; 499 tcp->cur_color.bg = tcp->std_color.bg [all...] |
H A D | scterm-teken.c | 348 teken_color_t fg, bg; local 352 bg = a->ta_fgcolor; 355 bg = a->ta_bgcolor; 359 if (bg >= 16) 360 bg = teken_256to16(bg); 362 ((te_to_sc_color[bg & 7] | (bg & 8)) << 4);
|
H A D | scvgarndr.c | 364 u_short bg, bgmask, fg, newbg; local 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; local 958 fg = bg [all...] |
/freebsd-13-stable/sys/dev/vt/hw/fb/ |
H A D | vt_fb.c | 267 unsigned int x, unsigned int y, term_color_t fg, term_color_t bg) 277 bgc = info->fb_cmap[bg]; 338 term_color_t fg, bg; local 355 VTBUF_ISCURSOR(&vw->vw_buf, row, col), &fg, &bg); 360 vd->vd_drawnbg && (vd->vd_drawnbg[z] == bg)) 365 x, y, fg, bg); 372 vd->vd_drawnbg[z] = bg; 457 int bg, err; local 483 if (TUNABLE_INT_FETCH("teken.bg_color", &bg) != 0) { 484 if (bg 264 vt_fb_bitblt_bitmap(struct vt_device *vd, const struct vt_window *vw, const uint8_t *pattern, const uint8_t *mask, unsigned int width, unsigned int height, unsigned int x, unsigned int y, term_color_t fg, term_color_t bg) argument [all...] |
/freebsd-13-stable/sys/dev/vt/hw/ofwfb/ |
H A D | ofwfb.c | 136 unsigned int x, unsigned int y, term_color_t fg, term_color_t bg) 162 bgc = sc->fb_cmap[bg]; 167 bg = ofw_colors[bg]; 185 ch1.l = ch2.l = (bg << 24) | (bg << 16) | 186 (bg << 8) | bg; 231 b & 0x80 ? fg : bg; 254 term_color_t fg, bg; local 133 ofwfb_bitblt_bitmap(struct vt_device *vd, const struct vt_window *vw, const uint8_t *pattern, const uint8_t *mask, unsigned int width, unsigned int height, unsigned int x, unsigned int y, term_color_t fg, term_color_t bg) argument [all...] |
/freebsd-13-stable/usr.bin/locate/code/ |
H A D | locate.code.c | 261 bgindex(char *bg) /* Return location of bg in bigrams or -1. */ argument 265 bg0 = bg[0]; 266 bg1 = bg[1];
|
/freebsd-13-stable/lib/libdpv/ |
H A D | status.c | 54 dlg_color_table[SCREEN_ATTR].bg) | A_BOLD; 90 /* Print text in screen bg, button active fg, and bold */
|
/freebsd-13-stable/contrib/tcsh/ |
H A D | tw.color.c | 138 ANSI_BG_BLACK = 40, /* bg black */ 139 ANSI_BG_RED = 41, /* bg red */ 140 ANSI_BG_GREEN = 42, /* bg green */ 141 ANSI_BG_YELLOW = 43, /* bg yellow */ 142 ANSI_BG_BLUE = 44, /* bg blue */ 143 ANSI_BG_MAGENTA = 45, /* bg magenta */ 144 ANSI_BG_CYAN = 46, /* bg cyan */ 145 ANSI_BG_WHITE = 47, /* bg white */ 146 ANSI_BG_DEFAULT = 49, /* bg default (black) */ 252 makecolor(char **c, int fg, int bg, St argument 300 int fg, bg; local [all...] |
/freebsd-13-stable/sys/kern/ |
H A D | subr_terminal.c | 147 /* Fudge bg brightness as TF_BLINK (shifted). */ 171 int fg, bg; local 178 fg = bg = -1; 180 TUNABLE_INT_FETCH("teken.bg_color", &bg); 186 if (bg != -1) { 187 default_message.ta_bgcolor = bg; 188 kernel_message.ta_bgcolor = bg; 451 int fg, bg; local 465 teken_get_defattr_cons25(&tm->tm_emulator, &fg, &bg); 467 vi->mv_norm.back = bg; [all...] |
/freebsd-13-stable/contrib/ncurses/ncurses/tinfo/ |
H A D | tinfo_driver.c | 313 drv_defaultcolors(TERMINAL_CONTROL_BLOCK * TCB, int fg, int bg) argument 323 sp->_default_color = isDefaultColor(fg) || isDefaultColor(bg); 328 sp->_default_bg = isDefaultColor(bg) ? COLOR_DEFAULT : bg; 335 (short)bg); 761 ("initializing pair: pair = %d, fg=(%d,%d,%d), bg=(%d,%d,%d)", 816 int bg = COLOR_DEFAULT; local 832 _nc_pair_content(SP_PARM, pair, &fg, &bg); 840 || (isDefaultColor(bg) && !isDefaultColor(old_bg))) { 868 if (isDefaultColor(bg)) [all...] |
/freebsd-13-stable/sys/powerpc/ofw/ |
H A D | ofw_syscons.c | 814 u_char *p, fg, bg; local 829 bg = ofwfb_background(a); 838 ch1.l = ch2.l = (bg << 24) | (bg << 16) | (bg << 8) | bg; 869 uint32_t *addr, fg, bg; local 881 bg = ofwfb_pix32(sc, ofwfb_background(a)); 886 *(addr + j) = bg; 936 u_char fg, bg; local 971 uint32_t fg, bg; local [all...] |
/freebsd-13-stable/sys/dev/vt/hw/vga/ |
H A D | vt_vga.c | 356 /* The bg color was trashed by the reads. */ 439 term_color_t fg, term_color_t bg, int overwrite) 499 pattern_ncolors[(dst_y + i) * 16 + bg] |= (~pattern & mask); 505 term_color_t fg, term_color_t bg, 521 vga_setbg(vd, bg); 620 term_color_t fg, bg; local 665 vt_determine_colors(c, VTBUF_ISCURSOR(vb, row, col), &fg, &bg); 668 if ((used_colors_list[bg] & 0x2) != 0x2) 671 used_colors_list[bg] |= 0x2; 706 0, 0, vf->vf_height, fg, bg, 435 vga_copy_bitmap_portion(uint8_t *pattern_2colors, uint8_t *pattern_ncolors, const uint8_t *src, const uint8_t *src_mask, unsigned int src_width, unsigned int src_x, unsigned int dst_x, unsigned int x_count, unsigned int src_y, unsigned int dst_y, unsigned int y_count, term_color_t fg, term_color_t bg, int overwrite) argument 504 vga_bitblt_pixels_block_2colors(struct vt_device *vd, const uint8_t *masks, term_color_t fg, term_color_t bg, unsigned int x, unsigned int y, unsigned int height) argument 871 term_color_t fg, bg; local 955 vga_bitblt_bitmap(struct vt_device *vd, const struct vt_window *vw, const uint8_t *pattern, const uint8_t *mask, unsigned int width, unsigned int height, unsigned int x, unsigned int y, term_color_t fg, term_color_t bg) argument [all...] |
/freebsd-13-stable/contrib/ncurses/ncurses/trace/ |
H A D | lib_traceatr.c | 152 NCURSES_COLOR_T fg, bg; local 154 if (pair_content(pairnum, &fg, &bg) == OK) { 159 COLOR_OF(bg));
|
/freebsd-13-stable/tools/tools/net80211/wlanwds/ |
H A D | wlanwds.c | 112 int s, c, logmask, bg = 1; local 123 bg = 0; 162 if (bg && daemon(0, 0) < 0)
|
/freebsd-13-stable/stand/efi/libefi/ |
H A D | efi_console.c | 195 teken_color_t fg, bg, tmp; local 201 bg = teken_256to16(px->a.ta_bgcolor); 205 bg |= TC_LIGHT; 209 fg = bg; 210 bg = tmp; 214 teken_color_to_efi_color[bg] & 0x7); 1021 * pick up fg and bg color values from the environment.
|