MCPcopy Create free account
hub / github.com/Entware/Entware / print_in_middle

Function print_in_middle

scripts/config/nconf.gui.c:120–124  ·  view source on GitHub ↗

this changes the windows attributes !!! */

Source from the content-addressed store, hash-verified

118
119/* this changes the windows attributes !!! */
120void print_in_middle(WINDOW *win, int y, int width, const char *str, int attrs)
121{
122 wattrset(win, attrs);
123 mvwprintw(win, y, (width - strlen(str)) / 2, "%s", str);
124}
125
126int get_line_no(const char *text)
127{

Callers 2

show_menuFunction · 0.85
show_scroll_win_extFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected