Lines Matching defs:bg
44 u_int bg;
194 if (ttyctx->defaults.bg == 8)
195 ttyctx->defaults.bg = ttyctx->palette->bg;
261 ctx->bg = 8;
1045 screen_write_insertcharacter(struct screen_write_ctx *ctx, u_int nx, u_int bg)
1062 ttyctx.bg = bg;
1064 grid_view_insert_cells(s->grid, s->cx, s->cy, nx, bg);
1073 screen_write_deletecharacter(struct screen_write_ctx *ctx, u_int nx, u_int bg)
1090 ttyctx.bg = bg;
1092 grid_view_delete_cells(s->grid, s->cx, s->cy, nx, bg);
1101 screen_write_clearcharacter(struct screen_write_ctx *ctx, u_int nx, u_int bg)
1118 ttyctx.bg = bg;
1120 grid_view_clear(s->grid, s->cx, s->cy, nx, 1, bg);
1129 screen_write_insertline(struct screen_write_ctx *ctx, u_int ny, u_int bg)
1145 ttyctx.bg = bg;
1147 grid_view_insert_lines(gd, s->cy, ny, bg);
1161 ttyctx.bg = bg;
1164 grid_view_insert_lines(gd, s->cy, ny, bg);
1166 grid_view_insert_lines_region(gd, s->rlower, s->cy, ny, bg);
1176 screen_write_deleteline(struct screen_write_ctx *ctx, u_int ny, u_int bg)
1193 ttyctx.bg = bg;
1195 grid_view_delete_lines(gd, s->cy, ny, bg);
1209 ttyctx.bg = bg;
1212 grid_view_delete_lines(gd, s->cy, ny, bg);
1214 grid_view_delete_lines_region(gd, s->rlower, s->cy, ny, bg);
1223 screen_write_clearline(struct screen_write_ctx *ctx, u_int bg)
1231 if (gl->cellsize == 0 && COLOUR_DEFAULT(bg))
1234 grid_view_clear(s->grid, 0, s->cy, sx, 1, bg);
1240 ci->bg = bg;
1247 screen_write_clearendofline(struct screen_write_ctx *ctx, u_int bg)
1255 screen_write_clearline(ctx, bg);
1260 if (s->cx > sx - 1 || (s->cx >= gl->cellsize && COLOUR_DEFAULT(bg)))
1263 grid_view_clear(s->grid, s->cx, s->cy, sx - s->cx, 1, bg);
1269 ci->bg = bg;
1279 screen_write_clearstartofline(struct screen_write_ctx *ctx, u_int bg)
1286 screen_write_clearline(ctx, bg);
1291 grid_view_clear(s->grid, 0, s->cy, sx, 1, bg);
1293 grid_view_clear(s->grid, 0, s->cy, s->cx + 1, 1, bg);
1299 ci->bg = bg;
1332 screen_write_reverseindex(struct screen_write_ctx *ctx, u_int bg)
1338 grid_view_scroll_region_down(s->grid, s->rupper, s->rlower, bg);
1342 ttyctx.bg = bg;
1375 screen_write_linefeed(struct screen_write_ctx *ctx, int wrapped, u_int bg)
1389 if (bg != ctx->bg) {
1391 ctx->bg = bg;
1395 grid_view_scroll_region_up(gd, s->rupper, s->rlower, bg);
1396 screen_write_collect_scroll(ctx, bg);
1404 screen_write_scrollup(struct screen_write_ctx *ctx, u_int lines, u_int bg)
1415 if (bg != ctx->bg) {
1417 ctx->bg = bg;
1421 grid_view_scroll_region_up(gd, s->rupper, s->rlower, bg);
1422 screen_write_collect_scroll(ctx, bg);
1429 screen_write_scrolldown(struct screen_write_ctx *ctx, u_int lines, u_int bg)
1437 ttyctx.bg = bg;
1445 grid_view_scroll_region_down(gd, s->rupper, s->rlower, bg);
1461 screen_write_clearendofscreen(struct screen_write_ctx *ctx, u_int bg)
1469 ttyctx.bg = bg;
1477 grid_view_clear_history(gd, bg);
1480 grid_view_clear(gd, s->cx, s->cy, sx - s->cx, 1, bg);
1481 grid_view_clear(gd, 0, s->cy + 1, sx, sy - (s->cy + 1), bg);
1491 screen_write_clearstartofscreen(struct screen_write_ctx *ctx, u_int bg)
1498 ttyctx.bg = bg;
1501 grid_view_clear(s->grid, 0, 0, sx, s->cy, bg);
1503 grid_view_clear(s->grid, 0, s->cy, sx, 1, bg);
1505 grid_view_clear(s->grid, 0, s->cy, s->cx + 1, 1, bg);
1514 screen_write_clearscreen(struct screen_write_ctx *ctx, u_int bg)
1521 ttyctx.bg = bg;
1527 grid_view_clear_history(s->grid, bg);
1529 grid_view_clear(s->grid, 0, 0, sx, sy, bg);
1624 ci2->bg = ci->bg;
1656 screen_write_collect_scroll(struct screen_write_ctx *ctx, u_int bg)
1680 ci->bg = bg;
1703 ttyctx.bg = ctx->bg;
1710 ctx->bg = 8;
1727 ttyctx.bg = ci->bg;
1940 else if (gc->bg != gce->data.bg)