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

123

/freebsd-11-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-11-stable/sys/teken/
H A Dteken_subr_compat.h58 teken_get_defattr_cons25(teken_t *t, int *fg, int *bg) argument
64 *bg = cons25_revcolors[teken_256to8(t->t_defattr.ta_bgcolor)];
/freebsd-11-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-11-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-11-stable/sys/dev/vt/hw/ofwfb/
H A Dofwfb.c116 unsigned int x, unsigned int y, term_color_t fg, term_color_t bg)
141 bgc = sc->fb_cmap[bg];
146 bg = ofw_colors[bg];
164 ch1.l = ch2.l = (bg << 24) | (bg << 16) |
165 (bg << 8) | bg;
210 b & 0x80 ? fg : bg;
233 term_color_t fg, bg; local
113 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-11-stable/sys/pc98/cbus/
H A Dscterm-sck.c54 u_short bg; /* background color */ member in struct:__anon8381
330 tcp->dflt_std_color.bg = (SC_NORM_ATTR >> 4) & 0x0f;
332 tcp->dflt_rev_color.bg = (SC_NORM_REV_ATTR >> 4) & 0x0f;
697 case 40: case 41: /* set ansi bg color */
701 tcp->cur_color.bg = ansi_col[n - 40];
704 case 49: /* restore bg color back to normal */
706 tcp->cur_color.bg = tcp->std_color.bg;
739 tcp->cur_color.bg = tcp->std_color.bg
[all...]
/freebsd-11-stable/usr.bin/locate/code/
H A Dlocate.code.c259 bgindex(char *bg) /* Return location of bg in bigrams or -1. */ argument
263 bg0 = bg[0];
264 bg1 = bg[1];
/freebsd-11-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-11-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
298 int fg, bg; local
[all...]
/freebsd-11-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-11-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-11-stable/sys/powerpc/ofw/
H A Dofw_syscons.c811 u_char *p, fg, bg; local
827 bg = ofwfb_background(a);
836 ch1.l = ch2.l = (bg << 24) | (bg << 16) | (bg << 8) | bg;
867 uint32_t *addr, fg, bg; local
879 bg = ofwfb_pix32(sc, ofwfb_background(a));
884 *(addr + j) = bg;
934 u_char fg, bg; local
969 uint32_t fg, bg; local
[all...]
/freebsd-11-stable/crypto/openssl/crypto/pkcs12/
H A Dpkcs12.h160 # define M_PKCS12_bag_type(bg) OBJ_obj2nid((bg)->type)
161 # define M_PKCS12_cert_bag_type(bg) OBJ_obj2nid((bg)->value.bag->type)
/freebsd-11-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-11-stable/sys/dev/vt/hw/fb/
H A Dvt_fb.c260 unsigned int x, unsigned int y, term_color_t fg, term_color_t bg)
270 bgc = info->fb_cmap[bg];
331 term_color_t fg, bg; local
347 VTBUF_ISCURSOR(&vw->vw_buf, row, col), &fg, &bg);
351 x, y, fg, bg);
257 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-11-stable/sys/dev/vt/hw/vga/
H A Dvt_vga.c350 /* The bg color was trashed by the reads. */
433 term_color_t fg, term_color_t bg, int overwrite)
493 pattern_ncolors[(dst_y + i) * 16 + bg] |= (~pattern & mask);
499 term_color_t fg, term_color_t bg,
515 vga_setbg(vd, bg);
614 term_color_t fg, bg; local
659 vt_determine_colors(c, VTBUF_ISCURSOR(vb, row, col), &fg, &bg);
662 if ((used_colors_list[bg] & 0x2) != 0x2)
665 used_colors_list[bg] |= 0x2;
700 0, 0, vf->vf_height, fg, bg,
429 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
498 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
865 term_color_t fg, bg; local
914 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-11-stable/sys/dev/syscons/
H A Dscterm-teken.c346 teken_color_t fg, bg; local
350 bg = a->ta_fgcolor;
353 bg = a->ta_bgcolor;
357 if (bg >= 16)
358 bg = teken_256to16(bg);
360 ((te_to_sc_color[bg & 7] | (bg & 8)) << 4);
/freebsd-11-stable/tools/tools/net80211/wlanwds/
H A Dwlanwds.c109 int s, c, logmask, bg = 1; local
116 bg = 0;
155 if (bg && daemon(0, 0) < 0)
/freebsd-11-stable/stand/pc98/libpc98/
H A Dvidconsole.c62 void write_char(int c, int fg, int bg);
63 void scroll_up(int rows, int fg, int bg);
193 *(crtat + 0x1000) = at2pc98(fg, bg);
320 * clear the window. fg and bg are attributes for the new lines
/freebsd-11-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-11-stable/sys/kern/
H A Dsubr_terminal.c141 /* Fudge bg brightness as TF_BLINK (shifted). */
421 int fg, bg; local
435 teken_get_defattr_cons25(&tm->tm_emulator, &fg, &bg);
437 vi->mv_norm.back = bg;
439 vi->mv_rev.fore = bg;

Completed in 228 milliseconds

123