MCPcopy Create free account
hub / github.com/coreboot/coreboot / werase

Function werase

payloads/libpayload/curses/tinycurses.c:651–664  ·  view source on GitHub ↗

void wcursyncup (WINDOW *) {} int wdelch (WINDOW *) {} int wechochar (WINDOW *, const chtype) {}

Source from the content-addressed store, hash-verified

649// int wdelch (WINDOW *) {}
650// int wechochar (WINDOW *, const chtype) {}
651int werase(WINDOW *win)
652{
653 int x, y;
654 for (y = 0; y <= win->_maxy; y++) {
655 for (x = 0; x <= win->_maxx; x++) {
656 win->_line[y].text[x].chars[0] = ' ';
657 win->_line[y].text[x].attr = WINDOW_ATTRS(win);
658 }
659 // Should we check instead?
660 win->_line[y].firstchar = 0;
661 win->_line[y].lastchar = win->_maxx;
662 }
663 return OK;
664}
665// int wgetnstr (WINDOW *,char *,int) {}
666int whline(WINDOW *win, chtype ch, int n)
667{

Callers 3

initscrFunction · 0.70
wclearFunction · 0.70
mainFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected