D | inputbox.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * inputbox.c -- implements the input box 16 static void print_buttons(WINDOW * dialog, int height, int width, int selected) in print_buttons() argument 18 int x = width / 2 - 11; in print_buttons() 19 int y = height - 2; in print_buttons() 21 print_button(dialog, " Ok ", y, x, selected == 0); in print_buttons() 22 print_button(dialog, " Help ", y, x + 14, selected == 1); in print_buttons() 24 wmove(dialog, y, x + 1 + 14 * selected); in print_buttons() 35 int input_x = 0, key = 0, button = -1; in dialog_inputbox() 46 if (getmaxy(stdscr) <= (height - INPUTBOX_HEIGTH_MIN)) in dialog_inputbox() [all …]
|