Lines Matching refs:input_x
48 int input_x = 0, scroll = 0, key = 0, button = -1; in dialog_inputbox() local
100 input_x = strlen(instr); in dialog_inputbox()
102 if (input_x >= box_width) { in dialog_inputbox()
103 scroll = input_x - box_width + 1; in dialog_inputbox()
104 input_x = box_width - 1; in dialog_inputbox()
111 wmove(dialog, box_y, box_x + input_x); in dialog_inputbox()
130 if (input_x || scroll) { in dialog_inputbox()
132 if (!input_x) { in dialog_inputbox()
137 instr[scroll + input_x + i] ? in dialog_inputbox()
138 instr[scroll + input_x + i] : ' '); in dialog_inputbox()
139 input_x = strlen(instr) - scroll; in dialog_inputbox()
141 input_x--; in dialog_inputbox()
142 instr[scroll + input_x] = '\0'; in dialog_inputbox()
143 mvwaddch(dialog, box_y, input_x + box_x, ' '); in dialog_inputbox()
144 wmove(dialog, box_y, input_x + box_x); in dialog_inputbox()
150 if (scroll + input_x < MAX_LEN) { in dialog_inputbox()
152 instr[scroll + input_x] = key; in dialog_inputbox()
153 instr[scroll + input_x + 1] = '\0'; in dialog_inputbox()
154 if (input_x == box_width - 1) { in dialog_inputbox()
160 wmove(dialog, box_y, input_x++ + box_x); in dialog_inputbox()
189 wmove(dialog, box_y, box_x + input_x); in dialog_inputbox()
213 wmove(dialog, box_y, box_x + input_x); in dialog_inputbox()