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

Function print_buttons

scripts/config/lxdialog/checklist.c:88–98  ·  view source on GitHub ↗

* Display the termination buttons */

Source from the content-addressed store, hash-verified

86 * Display the termination buttons
87 */
88static void print_buttons(WINDOW * dialog, int height, int width, int selected)
89{
90 int x = width / 2 - 11;
91 int y = height - 2;
92
93 print_button(dialog, "Select", y, x, selected == 0);
94 print_button(dialog, " Help ", y, x + 14, selected == 1);
95
96 wmove(dialog, y, x + 1 + 14 * selected);
97 wrefresh(dialog);
98}
99
100/*
101 * Display a dialog box with a list of options that can be turned on or off

Callers 1

dialog_checklistFunction · 0.70

Calls 1

print_buttonFunction · 0.85

Tested by

no test coverage detected