Lines Matching refs:scroll
48 int input_x = 0, scroll = 0, key = 0, button = -1;
95 scroll = input_x - box_width + 1;
98 waddch(dialog, instr[scroll + i]);
122 if (input_x || scroll) {
125 scroll = scroll < box_width - 1 ? 0 : scroll - (box_width - 1);
129 instr[scroll + input_x + i] ?
130 instr[scroll + input_x + i] : ' ');
131 input_x = strlen(instr) - scroll;
134 instr[scroll + input_x] = '\0';
142 if (scroll + input_x < MAX_LEN) {
144 instr[scroll + input_x] = key;
145 instr[scroll + input_x + 1] = '\0';
147 scroll++;
150 waddch(dialog, instr [scroll + i]);