Searched refs:bg (Results 1 - 25 of 59) sorted by relevance

123

/freebsd-12-stable/contrib/ncurses/ncurses/base/
H A Dlib_dft_fgbg.c66 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 Dlib_color.c188 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 Dlib_set_term.c423 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 DProcess.h189 static const char *OutputColor(char c, bool bold, bool bg);
192 static const char *OutputBold(bool bg);
/freebsd-12-stable/contrib/less/
H A Doutput.c101 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 Dscreen.c112 #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 Doptfunc.c551 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 Dofwfb.c127 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 Dteken_subr_compat.h89 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 Dlocate.code.c261 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 Dstatus.c54 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 Dtw.color.c138 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 Dcreator_vt.c184 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 Dtinfo_driver.c237 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 Dofw_syscons.c813 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 Dlib_traceatr.c154 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 Dvt_fb.c266 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 Dvt_vga.c356 /* 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 Dscterm-teken.c348 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 Dscvgarndr.c364 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 Dwlanwds.c113 int s, c, logmask, bg = 1; local
124 bg = 0;
163 if (bg && daemon(0, 0) < 0)
/freebsd-12-stable/sys/kern/
H A Dsubr_terminal.c147 /* 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 Doinit.c421 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 Dvidconsole.c63 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 Dradeon_combios.c952 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...]

Completed in 578 milliseconds

123