Lines Matching defs:bg
110 tty->fg = tty->bg = -1;
1037 tty_fake_bce(const struct tty *tty, const struct grid_cell *gc, u_int bg)
1041 if (!COLOUR_DEFAULT(bg) || !COLOUR_DEFAULT(gc->bg))
1128 u_int px, u_int nx, u_int bg)
1141 if (c->overlay_check == NULL && !tty_fake_bce(tty, defaults, bg)) {
1180 u_int px, u_int nx, u_int bg)
1188 tty_clear_line(tty, &ctx->defaults, ry, x, rx, bg);
1256 u_int ny, u_int px, u_int nx, u_int bg)
1269 if (c->overlay_check == NULL && !tty_fake_bce(tty, defaults, bg)) {
1285 if ((tty->term->flags & TERM_DECFRA) && !COLOUR_DEFAULT(bg)) {
1322 tty_clear_line(tty, defaults, yy, px, nx, bg);
1328 u_int ny, u_int px, u_int nx, u_int bg)
1333 tty_clear_area(tty, &ctx->defaults, y, ry, x, rx, bg);
1447 log_debug("%s: defaults: fg=%d, bg=%d", __func__, defaults->fg,
1448 defaults->bg);
1518 gcp->bg != last.bg ||
1528 width, last.bg);
1587 if (len != 0 && ((~last.flags & GRID_FLAG_CLEARED) || last.bg != 8)) {
1592 last.bg);
1693 tty_fake_bce(tty, &ctx->defaults, ctx->bg) ||
1701 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
1716 tty_fake_bce(tty, &ctx->defaults, ctx->bg) ||
1724 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
1735 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
1738 tty_clear_pane_line(tty, ctx, ctx->ocy, ctx->ocx, ctx->num, ctx->bg);
1748 tty_fake_bce(tty, &ctx->defaults, ctx->bg) ||
1758 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
1776 tty_fake_bce(tty, &ctx->defaults, ctx->bg) ||
1786 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
1800 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
1803 tty_clear_pane_line(tty, ctx, ctx->ocy, 0, ctx->sx, ctx->bg);
1811 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
1814 tty_clear_pane_line(tty, ctx, ctx->ocy, ctx->ocx, nx, ctx->bg);
1820 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
1823 tty_clear_pane_line(tty, ctx, ctx->ocy, 0, ctx->ocx + 1, ctx->bg);
1847 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
1879 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
1920 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
1961 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
1981 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
1992 tty_clear_pane_area(tty, ctx, py, ny, px, nx, ctx->bg);
1998 tty_clear_pane_line(tty, ctx, py, px, nx, ctx->bg);
2006 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
2017 tty_clear_pane_area(tty, ctx, py, ny, px, nx, ctx->bg);
2023 tty_clear_pane_line(tty, ctx, py, px, nx, ctx->bg);
2031 tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg,
2042 tty_clear_pane_area(tty, ctx, py, ny, px, nx, ctx->bg);
2572 if (gc2.bg == 8)
2573 gc2.bg = defaults->bg;
2579 gc2.bg == tty->last_cell.bg &&
2594 if (gc2.bg != 0 && !COLOUR_DEFAULT(gc2.bg))
2670 if (gc->fg == tc->fg && gc->bg == tc->bg && gc->us == tc->us)
2679 if (COLOUR_DEFAULT(gc->fg) || COLOUR_DEFAULT(gc->bg)) {
2691 if (COLOUR_DEFAULT(gc->bg) && !COLOUR_DEFAULT(tc->bg)) {
2693 tc->bg = gc->bg;
2706 if (!COLOUR_DEFAULT(gc->bg) && gc->bg != tc->bg)
2761 else if (gc->fg == 0 && gc->bg == 0)
2785 if ((c = colour_palette_get(palette, gc->bg)) != -1)
2786 gc->bg = c;
2790 if (gc->bg & COLOUR_FLAG_RGB) {
2794 colour_split_rgb(gc->bg, &r, &g, &b);
2795 gc->bg = colour_find_rgb(r, g, b);
2805 if (gc->bg & COLOUR_FLAG_256) {
2812 gc->bg = colour_256to16(gc->bg);
2813 if (gc->bg & 8) {
2814 gc->bg &= 7;
2816 gc->bg += 90;
2823 if (gc->bg >= 90 && gc->bg <= 97 && colours < 16)
2824 gc->bg -= 90;
2859 tty->cell.bg <= 97 &&
2896 if (gc->bg & COLOUR_FLAG_RGB || gc->bg & COLOUR_FLAG_256) {
2897 if (tty_try_colour(tty, gc->bg, "48") == 0)
2904 if (gc->bg >= 90 && gc->bg <= 97) {
2906 xsnprintf(s, sizeof s, "\033[%dm", gc->bg + 10);
2909 tty_putcode_i(tty, TTYC_SETAB, gc->bg - 90 + 8);
2914 tty_putcode_i(tty, TTYC_SETAB, gc->bg);
2918 tc->bg = gc->bg;
2998 gc->bg = wp->palette.bg;
3030 if (gc->bg == 8) {
3031 if (wp == wp->window->active && wp->cached_active_gc.bg != 8)
3032 gc->bg = wp->cached_active_gc.bg;
3034 gc->bg = wp->cached_gc.bg;
3040 struct colour_palette *palette, u_int bg, struct hyperlinks *hl)
3045 gc.bg = bg;