Lines Matching refs:input_x
48 int input_x = 0, scroll = 0, key = 0, button = -1;
92 input_x = strlen(instr);
94 if (input_x >= box_width) {
95 scroll = input_x - box_width + 1;
96 input_x = box_width - 1;
103 wmove(dialog, box_y, box_x + input_x);
122 if (input_x || scroll) {
124 if (!input_x) {
129 instr[scroll + input_x + i] ?
130 instr[scroll + input_x + i] : ' ');
131 input_x = strlen(instr) - scroll;
133 input_x--;
134 instr[scroll + input_x] = '\0';
135 mvwaddch(dialog, box_y, input_x + box_x, ' ');
136 wmove(dialog, box_y, input_x + box_x);
142 if (scroll + input_x < MAX_LEN) {
144 instr[scroll + input_x] = key;
145 instr[scroll + input_x + 1] = '\0';
146 if (input_x == box_width - 1) {
152 wmove(dialog, box_y, input_x++ + box_x);
181 wmove(dialog, box_y, box_x + input_x);
205 wmove(dialog, box_y, box_x + input_x);