447 |
} |
} |
448 |
} |
} |
449 |
} |
} |
450 |
|
else if (c == 7) |
451 |
|
{ |
452 |
|
/* Page Up */ |
453 |
|
first_entry -= 12; |
454 |
|
if (first_entry < 0) |
455 |
|
{ |
456 |
|
entryno += first_entry; |
457 |
|
first_entry = 0; |
458 |
|
if (entryno < 0) |
459 |
|
entryno = 0; |
460 |
|
} |
461 |
|
print_entries (3, 12, first_entry, entryno, menu_entries); |
462 |
|
} |
463 |
|
else if (c == 3) |
464 |
|
{ |
465 |
|
/* Page Down */ |
466 |
|
first_entry += 12; |
467 |
|
if (first_entry + entryno + 1 >= num_entries) |
468 |
|
{ |
469 |
|
first_entry = num_entries - 12; |
470 |
|
if (first_entry < 0) |
471 |
|
first_entry = 0; |
472 |
|
entryno = num_entries - first_entry - 1; |
473 |
|
} |
474 |
|
print_entries (3, 12, first_entry, entryno, menu_entries); |
475 |
|
} |
476 |
|
|
477 |
if (config_entries) |
if (config_entries) |
478 |
{ |
{ |
479 |
if ((c == '\n') || (c == '\r')) |
if ((c == '\n') || (c == '\r') || (c == 6)) |
480 |
break; |
break; |
481 |
} |
} |
482 |
else |
else |