• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/scripts/kconfig/lxdialog/

Lines Matching refs:scroll

53  * Reset 'scroll' to 0 if the value from lxdialog.scrltmp is bogus.
56 * fscanf would read in 'scroll', and eventually that value would get used.
108 * Print the scroll indicators.
110 static void print_arrows(WINDOW * win, int item_no, int scroll, int y, int x,
119 if (scroll > 0) {
135 if ((height < item_no) && (scroll + height < item_no)) {
167 /* scroll up n lines (n may be negative) */
168 static void do_scroll(WINDOW *win, int *scroll, int n)
174 *scroll = *scroll + n;
186 int key = 0, button = 0, scroll = 0, choice = 0;
236 /* get the scroll info from the temp file */
238 if ((fscanf(f, "%d\n", &scroll) == 1) && (scroll <= choice) &&
239 (scroll + max_choice > choice) && (scroll >= 0) &&
240 (scroll + max_choice <= item_no)) {
241 first_item = scroll;
242 choice = choice - scroll;
245 scroll = 0;
253 scroll = first_item = item_no - max_choice;
255 scroll = first_item = choice - max_choice / 2;
256 choice = choice - scroll;
266 print_arrows(dialog, item_no, scroll,
283 j = first_alpha(items[(scroll + i) * 2 + 1], "YyNnMmHh");
284 if (key == tolower(items[(scroll + i) * 2 + 1][j]))
289 j = first_alpha(items [(scroll + i) * 2 + 1], "YyNnMmHh");
290 if (key == tolower(items[(scroll + i) * 2 + 1][j]))
300 print_item(scroll + choice, choice, FALSE);
303 if (choice < 2 && scroll) {
305 do_scroll(menu, &scroll, -1);
307 print_item(scroll, 0, FALSE);
312 print_item(scroll+choice, choice, FALSE);
315 (scroll + max_choice < item_no)) {
317 do_scroll(menu, &scroll, 1);
319 print_item(scroll+max_choice - 1,
327 if (scroll > 0) {
328 do_scroll(menu, &scroll, -1);
329 print_item(scroll, 0, FALSE);
338 if (scroll + max_choice < item_no) {
339 do_scroll(menu, &scroll, 1);
340 print_item(scroll+max_choice-1,
350 print_item(scroll + choice, choice, TRUE);
352 print_arrows(dialog, item_no, scroll,
377 /* save scroll info */
379 fprintf(f, "%d\n", scroll);
383 fprintf(stderr, "%s\n", items[(scroll + choice) * 2]);
406 items[(scroll + choice) * 2],
407 items[(scroll + choice) * 2 + 1] +
408 first_alpha(items [(scroll + choice) * 2 + 1], ""));
411 items[(scroll + choice) * 2]);