--- grub/ChangeLog.02 Mon Oct 14 15:04:40 2002 +++ grub/ChangeLog Mon Oct 14 15:07:10 2002 @@ -1,5 +1,8 @@ 2002-10-14 Adam Lackorzynski + * stage2/stage2.c (run_menu): Display number of current entry + in the right upper corner of the menu frame. + * stage2/stage2.c (run_menu): Add 'r' key to reload menu. * stage2/stage2.c (run_menu): Add vi like up and down keys --- grub/stage2/stage2.c.02 Fri Sep 27 15:21:39 2002 +++ grub/stage2/stage2.c Fri Sep 27 15:27:21 2002 @@ -362,6 +362,18 @@ grub_timeout--; } + /* Print the number of the current entry in the right upper corner of + * the menu, up to 999 entries are supported, modify the coordinates + * and putchar command to add more */ + if (! (current_term->flags & TERM_DUMB)) + { + gotoxy(69, 3); + grub_printf("[%d]", first_entry + entryno); + grub_putchar(DISP_HORIZ); + grub_putchar(DISP_HORIZ); + gotoxy(74, 4 + entryno); + } + /* Check for a keypress, however if TIMEOUT has been expired (GRUB_TIMEOUT == -1) relax in GETKEY even if no key has been pressed.