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

123

/openbsd-current/lib/libcurses/base/
H A Dlib_dft_fgbg.c69 NCURSES_SP_NAME(assume_default_colors) (NCURSES_SP_DCLx int fg, int bg) argument
73 T((T_CALLED("assume_default_colors(%p,%d,%d)"), (void *) SP_PARM, fg, bg));
76 code = CallDriver_2(SP_PARM, td_defaultcolors, fg, bg);
80 SP_PARM->_default_color = isDefaultColor(fg) || isDefaultColor(bg);
83 SP_PARM->_default_bg = isDefaultColor(bg) ? COLOR_DEFAULT : bg;
90 (short)bg);
102 assume_default_colors(int fg, int bg) argument
104 return NCURSES_SP_NAME(assume_default_colors) (CURRENT_SCREEN, fg, bg);
H A Dnew_pair.c139 ? (p->bg - q->bg)
144 _nc_find_color_pair(SCREEN *sp, int fg, int bg) argument
150 find.bg = bg;
207 (last->fg != next->fg || last->bg != next->bg)) {
264 NCURSES_SP_NAME(alloc_pair) (NCURSES_SP_DCLx int fg, int bg) argument
268 T((T_CALLED("alloc_pair(%d,%d)"), fg, bg));
271 } else if ((pair = _nc_find_color_pair(SP_PARM, fg, bg)) <
327 find_pair(NCURSES_SP_DCLx int fg, int bg) argument
[all...]
H A Dlib_color.c184 set_background_color(NCURSES_SP_DCLx int bg, NCURSES_SP_OUTC outc) argument
187 CallDriver_3(SP_PARM, td_color, FALSE, bg, outc);
192 TIPARM_1(set_a_background, bg),
197 TIPARM_1(set_background, toggled_colors(bg)),
668 ("initializing pair: pair = %d, fg=(%d,%d,%d), bg=(%d,%d,%d)",
940 int bg; local
944 bg = BACK_OF(sp->_color_pairs[pair]);
948 if (isDefaultColor(bg))
949 bg = -1;
955 *b = bg;
[all...]
/openbsd-current/usr.bin/tmux/
H A Dgrid-view.c66 grid_view_clear_history(struct grid *gd, u_int bg) argument
79 grid_view_clear(gd, 0, 0, gd->sx, gd->sy, bg);
86 grid_scroll_history(gd, bg);
89 grid_view_clear(gd, 0, 0, gd->sx, gd->sy - last, bg);
96 u_int bg)
101 grid_clear(gd, px, py, nx, ny, bg);
107 u_int bg)
112 grid_scroll_history(gd, bg);
116 grid_scroll_history_region(gd, rupper, rlower, bg);
121 grid_move_lines(gd, rupper, rupper + 1, rlower - rupper, bg);
95 grid_view_clear(struct grid *gd, u_int px, u_int py, u_int nx, u_int ny, u_int bg) argument
106 grid_view_scroll_region_up(struct grid *gd, u_int rupper, u_int rlower, u_int bg) argument
127 grid_view_scroll_region_down(struct grid *gd, u_int rupper, u_int rlower, u_int bg) argument
138 grid_view_insert_lines(struct grid *gd, u_int py, u_int ny, u_int bg) argument
151 grid_view_insert_lines_region(struct grid *gd, u_int rlower, u_int py, u_int ny, u_int bg) argument
167 grid_view_delete_lines(struct grid *gd, u_int py, u_int ny, u_int bg) argument
181 grid_view_delete_lines_region(struct grid *gd, u_int rlower, u_int py, u_int ny, u_int bg) argument
197 grid_view_insert_cells(struct grid *gd, u_int px, u_int py, u_int nx, u_int bg) argument
214 grid_view_delete_cells(struct grid *gd, u_int px, u_int py, u_int nx, u_int bg) argument
[all...]
H A Dgrid.c70 gce->data.bg = gc->bg & 0xff;
71 if (gc->bg & COLOUR_FLAG_256)
89 if ((gc->fg & COLOUR_FLAG_RGB) || (gc->bg & COLOUR_FLAG_RGB))
134 gee->bg = gc->bg;
198 grid_clear_cell(struct grid *gd, u_int px, u_int py, u_int bg) argument
205 if (bg != 8) {
206 if (bg & COLOUR_FLAG_RGB) {
209 gee->bg
396 grid_scroll_history(struct grid *gd, u_int bg) argument
426 grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower, u_int bg) argument
460 grid_expand_line(struct grid *gd, u_int py, u_int sx, u_int bg) argument
484 grid_empty_line(struct grid *gd, u_int py, u_int bg) argument
608 grid_clear(struct grid *gd, u_int px, u_int py, u_int nx, u_int ny, u_int bg) argument
648 grid_clear_lines(struct grid *gd, u_int py, u_int ny, u_int bg) argument
670 grid_move_lines(struct grid *gd, u_int dy, u_int py, u_int ny, u_int bg) argument
712 grid_move_cells(struct grid *gd, u_int dx, u_int px, u_int py, u_int nx, u_int bg) argument
[all...]
H A Dtty.c111 tty->fg = tty->bg = -1;
1030 tty_fake_bce(const struct tty *tty, const struct grid_cell *gc, u_int bg) argument
1034 if (!COLOUR_DEFAULT(bg) || !COLOUR_DEFAULT(gc->bg))
1121 u_int px, u_int nx, u_int bg)
1134 if (c->overlay_check == NULL && !tty_fake_bce(tty, defaults, bg)) {
1173 u_int px, u_int nx, u_int bg)
1181 tty_clear_line(tty, &ctx->defaults, ry, x, rx, bg);
1249 u_int ny, u_int px, u_int nx, u_int bg)
1262 if (c->overlay_check == NULL && !tty_fake_bce(tty, defaults, bg)) {
1120 tty_clear_line(struct tty *tty, const struct grid_cell *defaults, u_int py, u_int px, u_int nx, u_int bg) argument
1172 tty_clear_pane_line(struct tty *tty, const struct tty_ctx *ctx, u_int py, u_int px, u_int nx, u_int bg) argument
1248 tty_clear_area(struct tty *tty, const struct grid_cell *defaults, u_int py, u_int ny, u_int px, u_int nx, u_int bg) argument
1320 tty_clear_pane_area(struct tty *tty, const struct tty_ctx *ctx, u_int py, u_int ny, u_int px, u_int nx, u_int bg) argument
3030 tty_default_attributes(struct tty *tty, const struct grid_cell *defaults, struct colour_palette *palette, u_int bg, struct hyperlinks *hl) argument
[all...]
H A Dstyle.c53 * Parse an embedded style of the form "fg=colour,bg=colour,bright,...". Note
86 sy->gc.bg = base->bg;
203 sy->gc.bg = value;
205 sy->gc.bg = base->bg;
316 if (gc->bg != 8) {
318 colour_tostring(gc->bg));
353 if (sy->gc.bg != 8)
354 gc->bg
[all...]
H A Dinput.c1246 screen_write_linefeed(sctx, 0, ictx->cell.cell.bg);
1295 screen_write_linefeed(sctx, 0, ictx->cell.cell.bg);
1299 screen_write_linefeed(sctx, 0, ictx->cell.cell.bg);
1306 screen_write_reverseindex(sctx, ictx->cell.cell.bg);
1352 u_int cx, bg = ictx->cell.cell.bg; local
1471 screen_write_clearcharacter(sctx, n, bg);
1476 screen_write_deletecharacter(sctx, n, bg);
1487 screen_write_deleteline(sctx, n, bg);
1509 screen_write_clearendofscreen(sctx, bg);
[all...]
/openbsd-current/sys/dev/rasops/
H A Drasops1.c87 u_int fs, rs, fb, bg, fg, lmask, rmask; local
111 bg = (attr & 0x000f0000) ? ri->ri_devcmap[1] : ri->ri_devcmap[0];
114 /* If fg and bg match this becomes a space character */
115 if (fg == bg || uc == ' ') {
131 bg &= rmask;
134 *rp = (*rp & lmask) | bg;
138 /* NOT fontbits if bg is white */
139 if (bg) {
172 width = bg & ~rmask;
173 bg
233 int height, fs, rs, bg, fg; local
296 int height, fs, rs, bg, fg; local
[all...]
H A Drasops4.c101 int height, width, fs, rs, fb, bg, fg, lmask, rmask; local
124 bg = ri->ri_devcmap[(attr >> 16) & 0xf];
127 /* If fg and bg match this becomes a space character */
128 if (fg == bg || uc == ' ') {
144 bg &= rmask;
147 *rp = (*rp & lmask) | bg;
169 bg = bg & ~lmask;
170 width = bg & ~rmask;
173 rp[0] = (rp[0] & lmask) | bg;
226 int i, fg, bg; local
[all...]
H A Drasops8.c167 int32_t fg, bg; local
171 bg = ri->ri_devcmap[(attr >> 16) & 0xf] & 0xff;
176 stamp[i] = (i & 8 ? fg : bg);
177 stamp[i] |= ((i & 4 ? fg : bg) << 8);
178 stamp[i] |= ((i & 2 ? fg : bg) << 16);
179 stamp[i] |= ((i & 1 ? fg : bg) << 24);
181 stamp[i] = (i & 1 ? fg : bg);
182 stamp[i] |= ((i & 2 ? fg : bg) << 8);
183 stamp[i] |= ((i & 4 ? fg : bg) << 16);
184 stamp[i] |= ((i & 8 ? fg : bg) << 2
[all...]
H A Drasops24.c190 u_int fg, bg, c1, c2, c3, c4; local
194 bg = ri->ri_devcmap[((u_int)attr >> 16) & 0xf] & 0xffffff;
199 c1 = (i & 32 ? fg : bg);
200 c2 = (i & 16 ? fg : bg);
201 c3 = (i & 8 ? fg : bg);
202 c4 = (i & 4 ? fg : bg);
204 c1 = (i & 8 ? fg : bg);
205 c2 = (i & 4 ? fg : bg);
206 c3 = (i & 16 ? fg : bg);
207 c4 = (i & 32 ? fg : bg);
[all...]
H A Drasops15.c182 int32_t fg, bg; local
186 bg = ri->ri_devcmap[((u_int)attr >> 16) & 0xf] & 0xffff;
191 stamp[i] = (i & 16 ? fg : bg);
192 stamp[i] |= ((i & 8 ? fg : bg) << 16);
193 stamp[i + 1] = (i & 4 ? fg : bg);
194 stamp[i + 1] |= ((i & 2 ? fg : bg) << 16);
196 stamp[i + 1] = (i & 2 ? fg : bg);
197 stamp[i + 1] |= ((i & 4 ? fg : bg) << 16);
198 stamp[i] = (i & 8 ? fg : bg);
199 stamp[i] |= ((i & 16 ? fg : bg) << 1
[all...]
H A Drasops.c538 rasops_pack_cattr(void *cookie, int fg, int bg, int flg, uint32_t *attr) argument
547 bg = WS_DEFAULT_BG;
552 fg = bg;
553 bg = swap;
560 *attr = (bg << 16) | (fg << 24) | (flg & WSATTR_UNDERLINE);
568 rasops_pack_mattr(void *cookie, int fg, int bg, int flg, uint32_t *attr) argument
576 bg = 0;
580 fg = bg;
581 bg = swap;
584 *attr = (bg << 1
873 rasops_unpack_attr(void *cookie, uint32_t attr, int *fg, int *bg, int *underline) argument
1668 rasops_vcons_pack_attr(void *cookie, int fg, int bg, int flg, uint32_t *attr) argument
1676 rasops_vcons_unpack_attr(void *cookie, uint32_t attr, int *fg, int *bg, int *underline) argument
1782 int fg, bg; local
[all...]
/openbsd-current/lib/libcurses/
H A Dnew_pair.h95 int bg; member in struct:_color_pairs
104 #define MakeColorPair(target,f,b) target.fg = f, target.bg = b
105 #define isSamePair(a,b) ((a).fg == (b).fg && (a).bg == (b).bg)
107 #define BACK_OF(c) (c).bg
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Dcomplex-2.c9 __complex__ double bg = -2.0 + 2.0i; variable
/openbsd-current/gnu/llvm/llvm/include/llvm/Support/
H A DProcess.h196 static const char *OutputColor(char c, bool bold, bool bg);
199 static const char *OutputBold(bool bg);
/openbsd-current/sys/arch/luna88k/dev/
H A Domrasops.c102 int i, fg, bg; local
111 ri->ri_ops.unpack_attr(cookie, attr, &fg, &bg, NULL);
112 inverse = (bg != 0) ? ALL1BITS : ALL0BITS;
169 int i, fg, bg; local
178 ri->ri_ops.unpack_attr(cookie, attr, &fg, &bg, NULL);
183 bgmask0 = (bg & 0x01) ? ALL1BITS : ALL0BITS;
184 bgmask1 = (bg & 0x02) ? ALL1BITS : ALL0BITS;
185 bgmask2 = (bg & 0x04) ? ALL1BITS : ALL0BITS;
186 bgmask3 = (bg & 0x08) ? ALL1BITS : ALL0BITS;
294 int fg, bg; local
318 int fg, bg; local
[all...]
/openbsd-current/usr.bin/locate/code/
H A Dlocate.code.c249 bgindex(char *bg) /* Return location of bg in bigrams or -1. */ argument
253 bg0 = bg[0];
254 bg1 = bg[1];
/openbsd-current/lib/libcurses/tinfo/
H A Dtinfo_driver.c318 drv_defaultcolors(TERMINAL_CONTROL_BLOCK * TCB, int fg, int bg) argument
328 sp->_default_color = isDefaultColor(fg) || isDefaultColor(bg);
333 sp->_default_bg = isDefaultColor(bg) ? COLOR_DEFAULT : bg;
340 (short)bg);
777 ("initializing pair: pair = %d, fg=(%d,%d,%d), bg=(%d,%d,%d)",
832 int bg = COLOR_DEFAULT; local
848 _nc_pair_content(SP_PARM, pair, &fg, &bg);
856 || (isDefaultColor(bg) && !isDefaultColor(old_bg))) {
884 if (isDefaultColor(bg))
[all...]
/openbsd-current/sys/dev/wscons/
H A Dwsdisplayvar.h83 int (*pack_attr)(void *c, int fg, int bg, int flags,
85 void (*unpack_attr)(void *c, uint32_t attr, int *fg, int *bg,
87 /* fg / bg values. Made identical to ANSI terminal color codes. */
/openbsd-current/sys/dev/isa/
H A Dpcdisplay.c378 pcdisplay_pack_attr(void *id, int fg, int bg, int flags, uint32_t *attrp) argument
388 pcdisplay_unpack_attr(void *id, uint32_t attr, int *fg, int *bg, int *ul) argument
392 *bg = WSCOL_WHITE;
395 *bg = WSCOL_BLACK;
/openbsd-current/sys/dev/sbus/
H A Dzx.c573 int fg, bg; local
579 ri->ri_ops.unpack_attr(ri, attr, &fg, &bg, NULL);
589 SETREG(zd->zd_fg, ri->ri_devcmap[bg] << 24);
662 int fg, bg; local
671 ri->ri_ops.unpack_attr(cookie, attr, &fg, &bg, NULL);
677 SETREG(zd->zd_fg, ri->ri_devcmap[bg] << 24);
721 int fs, i, fg, bg, ul; local
725 ri->ri_ops.unpack_attr(cookie, attr, &fg, &bg, &ul);
727 bg = ri->ri_devcmap[bg];
[all...]
H A Dmgx.c714 int fg, bg; local
717 ri->ri_ops.unpack_attr(v, attr, &fg, &bg, NULL);
718 bg = ri->ri_devcmap[bg];
730 mgx_write_4(sc->sc_xreg, ATR_FG, bg);
744 int fg, bg; local
747 ri->ri_ops.unpack_attr(v, attr, &fg, &bg, NULL);
748 bg = ri->ri_devcmap[bg];
754 mgx_write_4(sc->sc_xreg, ATR_FG, bg);
[all...]
/openbsd-current/sys/dev/pcmcia/
H A Dcfxga.c874 int bg, fg, ul; local
881 ri->ri_ops.unpack_attr(ri, attr, &fg, &bg, &ul);
898 cfxga_write_2(sc, CFREG_BITBLT_BG, ri->ri_devcmap[bg]);
963 int fg, bg; local
976 &fg, &bg, NULL);
978 ri->ri_devcmap[bg]);
1142 int fg, bg; local
1154 ri->ri_ops.unpack_attr(cookie, attr, &fg, &bg, NULL);
1159 return cfxga_solid_fill(scr, x, y, cx, cy, ri->ri_devcmap[bg]);
1167 int fg, bg; local
1208 int cx, cy, fg, bg; local
[all...]

Completed in 8673 milliseconds

123