Searched refs:fg (Results 1 - 25 of 62) sorted by relevance

123

/openbsd-current/usr.bin/grep/
H A Dutil.c289 fgrepcomp(fastgrep_t *fg, const unsigned char *pattern) argument
294 fg->patternLen = strlen(pattern);
295 fg->bol = 0;
296 fg->eol = 0;
297 fg->wmatch = wflag;
298 fg->reversedSearch = 0;
305 fg->pattern = grep_malloc(fg->patternLen + 1);
306 for (i = 0; i < fg->patternLen; i++)
307 fg
332 fastcomp(fastgrep_t *fg, const char *pattern) argument
502 grep_search(fastgrep_t *fg, char *data, size_t dataLen, regmatch_t *pmatch, int flags) argument
[all...]
/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);
82 SP_PARM->_default_fg = isDefaultColor(fg) ? COLOR_DEFAULT : fg;
89 (short)fg,
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.c138 return ((p->fg == q->fg)
140 : (p->fg - q->fg));
144 _nc_find_color_pair(SCREEN *sp, int fg, int bg) argument
149 find.fg = fg;
207 (last->fg != next->fg || last->bg != next->bg)) {
264 NCURSES_SP_NAME(alloc_pair) (NCURSES_SP_DCLx int fg, in argument
327 find_pair(NCURSES_SP_DCLx int fg, int bg) argument
[all...]
H A Dlib_color.c204 set_foreground_color(NCURSES_SP_DCLx int fg, NCURSES_SP_OUTC outc) argument
207 CallDriver_3(SP_PARM, td_color, TRUE, fg, outc);
212 TIPARM_1(set_a_foreground, fg),
217 TIPARM_1(set_foreground, toggled_colors(fg)),
668 ("initializing pair: pair = %d, fg=(%d,%d,%d), bg=(%d,%d,%d)",
939 int fg; local
943 fg = FORE_OF(sp->_color_pairs[pair]);
946 if (isDefaultColor(fg))
947 fg = -1;
953 *f = fg;
[all...]
/openbsd-current/lib/libcurses/
H A Dnew_pair.h94 int fg; 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)
106 #define FORE_OF(c) (c).fg
/openbsd-current/regress/usr.sbin/syslogd/
H A Dargs-client-tcp-octet.pl19 print "0 1 a2 bc3 de\n4 fg\000X3 hi 4 jk\n\n1 l0 1 m1 2 n2 o ";
32 qr/localhost fg$/ => 1, # NUL terminates message
H A Dargs-client-tcp-nontransp.pl32 qr/localhost fg$/ => 1, # NUL terminates message
/openbsd-current/sys/dev/rasops/
H A Drasops1.c87 u_int fs, rs, fb, bg, fg, lmask, rmask; local
112 fg = (attr & 0x0f000000) ? ri->ri_devcmap[1] : ri->ri_devcmap[0];
114 /* If fg and bg match this becomes a space character */
115 if (fg == bg || uc == ' ') {
165 *rp = (*rp & lmask) | (fg & rmask);
218 rp[0] = (rp[0] & lmask) | (fg & ~lmask);
219 rp[1] = (rp[1] & rmask) | (fg & ~rmask);
233 int height, fs, rs, bg, fg; local
253 fg = (attr & 0x0f000000) ? ri->ri_devcmap[1] : ri->ri_devcmap[0];
255 /* If fg an
296 int height, fs, rs, bg, fg; local
[all...]
H A Drasops4.c101 int height, width, fs, rs, fb, bg, fg, lmask, rmask; local
125 fg = ri->ri_devcmap[(attr >> 24) & 0xf];
127 /* If fg and bg match this becomes a space character */
128 if (fg == bg || uc == ' ') {
162 *rp = (*rp & lmask) | (fg & rmask);
199 rp[0] = (rp[0] & lmask) | (fg & ~lmask);
200 rp[1] = (rp[1] & rmask) | (fg & ~rmask);
226 int i, fg, bg; local
228 fg = ri->ri_devcmap[(attr >> 24) & 0xf] & 0xf;
234 stamp[i] = (i & 1 ? fg
[all...]
H A Drasops8.c167 int32_t fg, bg; local
170 fg = ri->ri_devcmap[(attr >> 24) & 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
[all...]
H A Drasops24.c190 u_int fg, bg, c1, c2, c3, c4; local
193 fg = ri->ri_devcmap[((u_int)attr >> 24) & 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
[all...]
H A Drasops15.c182 int32_t fg, bg; local
185 fg = ri->ri_devcmap[((u_int)attr >> 24) & 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
[all...]
H A Drasops.c538 rasops_pack_cattr(void *cookie, int fg, int bg, int flg, uint32_t *attr) argument
546 fg = WS_DEFAULT_FG;
551 swap = fg;
552 fg = bg;
557 if ((flg & WSATTR_HILIT) != 0 && fg < 8)
558 fg += 8;
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
575 fg = 1;
579 swap = fg;
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/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.pt/
H A Dptrmem2.C22 F<&S::g> fg; member in struct:S
/openbsd-current/usr.bin/tmux/
H A Dstyle.c53 * Parse an embedded style of the form "fg=colour,bg=colour,bright,...". Note
85 sy->gc.fg = base->fg;
198 sy->gc.fg = value;
200 sy->gc.fg = base->fg;
311 if (gc->fg != 8) {
313 colour_tostring(gc->fg));
351 if (sy->gc.fg != 8)
352 gc->fg
[all...]
H A Dtty.c111 tty->fg = tty->bg = -1;
1438 log_debug("%s: defaults: fg=%d, bg=%d", __func__, defaults->fg,
1508 gcp->fg != last.fg ||
2561 if (gc2.fg == 8)
2562 gc2.fg = defaults->fg;
2569 gc2.fg == tty->last_cell.fg
[all...]
H A Dgrid.c66 gce->data.fg = gc->fg & 0xff;
67 if (gc->fg & COLOUR_FLAG_256)
89 if ((gc->fg & COLOUR_FLAG_RGB) || (gc->bg & COLOUR_FLAG_RGB))
133 gee->fg = gc->fg;
233 if (gc1->fg != gc2->fg || gc1->bg != gc2->bg)
514 gc->fg = gee->fg;
[all...]
/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);
169 int i, fg, bg; local
178 ri->ri_ops.unpack_attr(cookie, attr, &fg, &bg, NULL);
179 fgmask0 = (fg & 0x01) ? ALL1BITS : ALL0BITS;
180 fgmask1 = (fg & 0x02) ? ALL1BITS : ALL0BITS;
181 fgmask2 = (fg & 0x04) ? ALL1BITS : ALL0BITS;
182 fgmask3 = (fg & 0x08) ? ALL1BITS : ALL0BITS;
294 int fg, bg; local
297 ri->ri_ops.unpack_attr(cookie, attr, &fg,
318 int fg, bg; local
[all...]
/openbsd-current/sbin/iked/
H A Dsntrup761.c499 small fg[p+p-1]; local
506 fg[i] = result;
511 fg[i] = result;
515 fg[i-p] = F3_freeze(fg[i-p]+fg[i]);
516 fg[i-p+1] = F3_freeze(fg[i-p+1]+fg[i]);
519 for (i = 0;i < p;++i) h[i] = fg[
573 Fq fg[p+p-1]; local
[all...]
/openbsd-current/usr.bin/ssh/
H A Dsntrup761.c499 small fg[p+p-1]; local
506 fg[i] = result;
511 fg[i] = result;
515 fg[i-p] = F3_freeze(fg[i-p]+fg[i]);
516 fg[i-p+1] = F3_freeze(fg[i-p+1]+fg[i]);
519 for (i = 0;i < p;++i) h[i] = fg[
573 Fq fg[p+p-1]; local
[all...]
/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);
332 sp->_default_fg = isDefaultColor(fg) ? COLOR_DEFAULT : fg;
339 (short)fg,
777 ("initializing pair: pair = %d, fg=(%d,%d,%d), bg=(%d,%d,%d)",
831 int fg = COLOR_DEFAULT; local
848 _nc_pair_content(SP_PARM, pair, &fg, &bg);
855 if ((isDefaultColor(fg) && !isDefaultColor(old_fg))
882 if (isDefaultColor(fg))
[all...]
/openbsd-current/gnu/llvm/lldb/examples/python/
H A Dgdbremote.py100 def black(self, fg=True):
102 The foreground color will be set if "fg" tests True. The background color will be set if "fg" tests False.'''
104 if fg:
110 def red(self, fg=True):
112 The foreground color will be set if "fg" tests True. The background color will be set if "fg" tests False.'''
114 if fg:
120 def green(self, fg=True):
122 The foreground color will be set if "fg" test
[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
391 *fg = WSCOL_BLACK;
394 *fg = WSCOL_WHITE;
/openbsd-current/gnu/usr.bin/gcc/gcc/config/sh/
H A Dushmedia.h560 sh_media_FABS_S (float fg) argument
563 __asm__ ("fabs.s %1, %0" : "=f" (res) : "f" (fg));
578 sh_media_FCMPUN_S (float fg, float fh) argument
581 __asm__ ("fcmpun.s %1, %2, %0" : "=f" (res) : "f" (fg), "f" (fh));
606 sh_media_FMAC_S (float fg, float fh, float fq) argument
610 : "f" (fg), "f" (fh), "0" (fq));
643 sh_media_FMOV_SL (float fg) argument
646 __asm__ ("fmov.sl %1, %0" : "=r" (res) : "f" (fg));
652 sh_media_FPUTSCR (float fg) argument
654 __asm__ ("fputscr %0" : : "f" (fg));
668 sh_media_FSQRT_S(float fg) argument
[all...]

Completed in 377 milliseconds

123