menubox.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) menubox.c (694c49a7c01cc87194be40cb26404b58b68c291c)
1/*
2 * menubox.c -- implements the menu box
3 *
4 * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk)
5 * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcapw@cfw.com)
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

--- 143 unchanged lines hidden (view full) ---

152/*
153 * Display the termination buttons.
154 */
155static void print_buttons(WINDOW * win, int height, int width, int selected)
156{
157 int x = width / 2 - 28;
158 int y = height - 2;
159
1/*
2 * menubox.c -- implements the menu box
3 *
4 * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk)
5 * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcapw@cfw.com)
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

--- 143 unchanged lines hidden (view full) ---

152/*
153 * Display the termination buttons.
154 */
155static void print_buttons(WINDOW * win, int height, int width, int selected)
156{
157 int x = width / 2 - 28;
158 int y = height - 2;
159
160 print_button(win, gettext("Select"), y, x, selected == 0);
161 print_button(win, gettext(" Exit "), y, x + 12, selected == 1);
162 print_button(win, gettext(" Help "), y, x + 24, selected == 2);
163 print_button(win, gettext(" Save "), y, x + 36, selected == 3);
164 print_button(win, gettext(" Load "), y, x + 48, selected == 4);
160 print_button(win, "Select", y, x, selected == 0);
161 print_button(win, " Exit ", y, x + 12, selected == 1);
162 print_button(win, " Help ", y, x + 24, selected == 2);
163 print_button(win, " Save ", y, x + 36, selected == 3);
164 print_button(win, " Load ", y, x + 48, selected == 4);
165
166 wmove(win, y, x + 1 + 12 * selected);
167 wrefresh(win);
168}
169
170/* scroll up n lines (n may be negative) */
171static void do_scroll(WINDOW *win, int *scroll, int n)
172{

--- 265 unchanged lines hidden ---
165
166 wmove(win, y, x + 1 + 12 * selected);
167 wrefresh(win);
168}
169
170/* scroll up n lines (n may be negative) */
171static void do_scroll(WINDOW *win, int *scroll, int n)
172{

--- 265 unchanged lines hidden ---