Lines Matching refs:scroll
48 int input_x = 0, scroll = 0, key = 0, button = -1;
103 scroll = input_x - box_width + 1;
106 waddch(dialog, instr[scroll + i]);
130 if (input_x || scroll) {
133 scroll = scroll < box_width - 1 ? 0 : scroll - (box_width - 1);
137 instr[scroll + input_x + i] ?
138 instr[scroll + input_x + i] : ' ');
139 input_x = strlen(instr) - scroll;
142 instr[scroll + input_x] = '\0';
150 if (scroll + input_x < MAX_LEN) {
152 instr[scroll + input_x] = key;
153 instr[scroll + input_x + 1] = '\0';
155 scroll++;
158 waddch(dialog, instr [scroll + i]);