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

Function print_buttons

scripts/config/lxdialog/inputbox.c:16–26  ·  view source on GitHub ↗

* Print the termination buttons */

Source from the content-addressed store, hash-verified

14 * Print the termination buttons
15 */
16static void print_buttons(WINDOW * dialog, int height, int width, int selected)
17{
18 int x = width / 2 - 11;
19 int y = height - 2;
20
21 print_button(dialog, " Ok ", y, x, selected == 0);
22 print_button(dialog, " Help ", y, x + 14, selected == 1);
23
24 wmove(dialog, y, x + 1 + 14 * selected);
25 wrefresh(dialog);
26}
27
28/*
29 * Display a dialog box for inputing a string

Callers 1

dialog_inputboxFunction · 0.70

Calls 1

print_buttonFunction · 0.85

Tested by

no test coverage detected