/freebsd-12-stable/contrib/ncurses/ncurses/base/ |
H A D | lib_dft_fgbg.c | 66 NCURSES_SP_NAME(assume_default_colors) (NCURSES_SP_DCLx int fg, int bg) argument 70 T((T_CALLED("assume_default_colors(%p,%d,%d)"), (void *) SP_PARM, fg, bg)); 73 code = CallDriver_2(sp, defaultcolors, fg, bg); 77 SP_PARM->_default_color = isDefaultColor(fg) || isDefaultColor(bg); 80 SP_PARM->_default_bg = isDefaultColor(bg) ? COLOR_DEFAULT : (bg & C_MASK); 85 init_pair(0, (short) fg, (short) bg); 96 assume_default_colors(int fg, int bg) argument 98 return NCURSES_SP_NAME(assume_default_colors) (CURRENT_SCREEN, fg, bg);
|
H A D | lib_color.c | 188 set_background_color(NCURSES_SP_DCLx int bg, NCURSES_SP_OUTC outc) argument 191 CallDriver_3(SP_PARM, color, FALSE, bg, outc); 196 TPARM_1(set_a_background, bg), 201 TPARM_1(set_background, toggled_colors(bg)), 556 ("initializing pair: pair = %d, fg=(%d,%d,%d), bg=(%d,%d,%d)", 775 NCURSES_COLOR_T bg = (NCURSES_COLOR_T) BACK_OF(SP_PARM->_color_pairs[pair]); local 780 if (bg == COLOR_DEFAULT) 781 bg = -1; 787 *b = bg; 792 (int) fg, (int) bg)); [all...] |
H A D | lib_set_term.c | 423 int fg, bg; local 425 int count = sscanf(env, "%d%c%d%c", &fg, &sep1, &bg, &sep2); 429 sp->_default_bg = ((bg >= 0 && bg < MaxColors) ? bg : C_MASK); 432 ("from environment assumed fg=%d, bg=%d", 451 TR(TRACE_CHARPUT | TRACE_MOVE, ("decoded fg=%d, bg=%d",
|
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Process.h | 189 static const char *OutputColor(char c, bool bold, bool bg); 192 static const char *OutputBold(bool bg);
|
/freebsd-12-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-12-stable/sys/dev/vt/hw/ofwfb/ |
H A D | ofwfb.c | 127 unsigned int x, unsigned int y, term_color_t fg, term_color_t bg) 153 bgc = sc->fb_cmap[bg]; 158 bg = ofw_colors[bg]; 176 ch1.l = ch2.l = (bg << 24) | (bg << 16) | 177 (bg << 8) | bg; 222 b & 0x80 ? fg : bg; 245 term_color_t fg, bg; local 124 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-12-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-12-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-12-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-12-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-12-stable/sys/dev/fb/ |
H A D | creator_vt.c | 184 unsigned int x, unsigned int y, term_color_t fg, term_color_t bg) 193 bgc = sc->fb.fb_cmap[bg]; 230 term_color_t fg, bg; local 246 VTBUF_ISCURSOR(&vw->vw_buf, row, col), &fg, &bg); 250 x, y, fg, bg); 181 creatorfb_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
|
/freebsd-12-stable/contrib/ncurses/ncurses/tinfo/ |
H A D | tinfo_driver.c | 237 drv_defaultcolors(TERMINAL_CONTROL_BLOCK * TCB, int fg, int bg) argument 247 sp->_default_color = isDefaultColor(fg) || isDefaultColor(bg); 252 sp->_default_bg = isDefaultColor(bg) ? COLOR_DEFAULT : (bg & C_MASK); 259 (short)bg); 687 ("initializing pair: pair = %d, fg=(%d,%d,%d), bg=(%d,%d,%d)", 742 NCURSES_COLOR_T bg = COLOR_DEFAULT; local 761 &bg); 772 || (isDefaultColor(bg) && !isDefaultColor(old_bg))) { 800 if (isDefaultColor(bg)) [all...] |
/freebsd-12-stable/sys/powerpc/ofw/ |
H A D | ofw_syscons.c | 813 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-12-stable/contrib/ncurses/ncurses/trace/ |
H A D | lib_traceatr.c | 154 NCURSES_COLOR_T fg, bg; local 156 if (pair_content(pairnum, &fg, &bg) == OK) { 161 COLOR_OF(bg));
|
/freebsd-12-stable/sys/dev/vt/hw/fb/ |
H A D | vt_fb.c | 266 unsigned int x, unsigned int y, term_color_t fg, term_color_t bg) 276 bgc = info->fb_cmap[bg]; 337 term_color_t fg, bg; local 354 VTBUF_ISCURSOR(&vw->vw_buf, row, col), &fg, &bg); 359 vd->vd_drawnbg && (vd->vd_drawnbg[z] == bg)) 364 x, y, fg, bg); 371 vd->vd_drawnbg[z] = bg; 263 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
|
/freebsd-12-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-12-stable/sys/dev/syscons/ |
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-12-stable/tools/tools/net80211/wlanwds/ |
H A D | wlanwds.c | 113 int s, c, logmask, bg = 1; local 124 bg = 0; 163 if (bg && daemon(0, 0) < 0)
|
/freebsd-12-stable/sys/kern/ |
H A D | subr_terminal.c | 147 /* Fudge bg brightness as TF_BLINK (shifted). */ 427 int fg, bg; local 441 teken_get_defattr_cons25(&tm->tm_emulator, &fg, &bg); 443 vi->mv_norm.back = bg; 445 vi->mv_rev.fore = bg;
|
/freebsd-12-stable/release/picobsd/tinyware/oinit/ |
H A D | oinit.c | 421 int bg=0; local 426 bg++; 429 } else bg=0; 469 if(bg) { 471 printf("do_command(%s): failed to run bg: %s\n",
|
/freebsd-12-stable/stand/i386/libi386/ |
H A D | vidconsole.c | 63 void write_char(int c, int fg, int bg); 64 void scroll_up(int rows, int fg, int bg); 245 * clear the window. fg and bg are attributes for the new lines
|
/freebsd-12-stable/sys/dev/drm2/radeon/ |
H A D | radeon_combios.c | 952 uint8_t rev, bg, dac; local 967 bg = RBIOS8(dac_info + 0x2) & 0xf; 969 p_dac->ps2_pdac_adj = (bg << 8) | (dac); 971 bg = RBIOS8(dac_info + 0x2) & 0xf; 973 p_dac->ps2_pdac_adj = (bg << 8) | (dac); 1097 uint8_t rev, bg, dac; local 1111 bg = RBIOS8(dac_info + 0xc) & 0xf; 1113 tv_dac->ps2_tvdac_adj = (bg << 16) | (dac << 20); 1115 bg = RBIOS8(dac_info + 0xe) & 0xf; 1117 tv_dac->pal_tvdac_adj = (bg << 1 [all...] |