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

Function waddch

payloads/libpayload/curses/tinycurses.c:503–532  ·  view source on GitHub ↗

int vwscanw (WINDOW *, NCURSES_CONST char *,va_list) {}

Source from the content-addressed store, hash-verified

501}
502// int vwscanw (WINDOW *, NCURSES_CONST char *,va_list) {}
503int waddch(WINDOW *win, const chtype ch)
504{
505 int code = ERR;
506 // NCURSES_CH_T wch;
507 // SetChar2(wch, ch);
508
509 if (win->_line[win->_cury].firstchar == _NOCHANGE ||
510 win->_line[win->_cury].firstchar > win->_curx)
511 win->_line[win->_cury].firstchar = win->_curx;
512
513 win->_line[win->_cury].text[win->_curx].chars[0] =
514 ((ch) & (chtype)A_CHARTEXT);
515
516 win->_line[win->_cury].text[win->_curx].attr = WINDOW_ATTRS(win);
517 win->_line[win->_cury].text[win->_curx].attr |=
518 ((ch) & (chtype)A_ATTRIBUTES);
519
520 if (win->_line[win->_cury].lastchar == _NOCHANGE ||
521 win->_line[win->_cury].lastchar < win->_curx)
522 win->_line[win->_cury].lastchar = win->_curx;
523
524 win->_curx++; // FIXME
525
526 // if (win && (waddch_nosync(win, wch) != ERR)) {
527 // _nc_synchook(win);
528 // code = OK;
529 // }
530
531 return code;
532}
533// int waddchnstr (WINDOW *,const chtype *,int) {}
534int waddnstr(WINDOW *win, const char *astr, int n)
535{

Callers 15

pci_module_redrawFunction · 0.50
print_module_titleFunction · 0.50
print_submenuFunction · 0.50
print_menuFunction · 0.50
centerFunction · 0.50
dialog_yesnoFunction · 0.50
print_lineFunction · 0.50
dialog_textboxFunction · 0.50
print_itemFunction · 0.50
print_arrowsFunction · 0.50
dialog_checklistFunction · 0.50
attr_clearFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected