inputbox.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | inputbox.c (694c49a7c01cc87194be40cb26404b58b68c291c) |
---|---|
1/* 2 * inputbox.c -- implements the input box 3 * 4 * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) 5 * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@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 --- 17 unchanged lines hidden (view full) --- 26/* 27 * Print the termination buttons 28 */ 29static void print_buttons(WINDOW * dialog, int height, int width, int selected) 30{ 31 int x = width / 2 - 11; 32 int y = height - 2; 33 | 1/* 2 * inputbox.c -- implements the input box 3 * 4 * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) 5 * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@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 --- 17 unchanged lines hidden (view full) --- 26/* 27 * Print the termination buttons 28 */ 29static void print_buttons(WINDOW * dialog, int height, int width, int selected) 30{ 31 int x = width / 2 - 11; 32 int y = height - 2; 33 |
34 print_button(dialog, gettext(" Ok "), y, x, selected == 0); 35 print_button(dialog, gettext(" Help "), y, x + 14, selected == 1); | 34 print_button(dialog, " Ok ", y, x, selected == 0); 35 print_button(dialog, " Help ", y, x + 14, selected == 1); |
36 37 wmove(dialog, y, x + 1 + 14 * selected); 38 wrefresh(dialog); 39} 40 41/* 42 * Display a dialog box for inputing a string 43 */ --- 258 unchanged lines hidden --- | 36 37 wmove(dialog, y, x + 1 + 14 * selected); 38 wrefresh(dialog); 39} 40 41/* 42 * Display a dialog box for inputing a string 43 */ --- 258 unchanged lines hidden --- |