static void _text_clear(Termpty *ty, Termcell *cells, int count, int val, Eina_Bool inherit_att) { Termcell src; memset(&src, 0, sizeof(src)); src.codepoint = val; if (inherit_att) src.att = ty->state.att; termpty_cell_fill(ty, &src, cells, count); }
void termpty_cells_clear(Termpty *ty, Termcell *cells, int count) { Termcell src; memset(&src, 0, sizeof(src)); src.codepoint = 0; src.att = ty->termstate.att; termpty_cell_fill(ty, &src, cells, count); }
void _termpty_clear_all(Termpty *ty) { if (!ty->screen) return; termpty_cell_fill(ty, NULL, ty->screen, ty->w * ty->h); }