? stage2/.builtins.c.swp Index: ChangeLog =================================================================== RCS file: /cvsroot/grub/grub/ChangeLog,v retrieving revision 1.484 diff -u -w -r1.484 ChangeLog --- ChangeLog 6 Apr 2002 22:30:18 -0000 1.484 +++ ChangeLog 15 Apr 2002 12:44:23 -0000 @@ -1,3 +1,9 @@ +2002-04-15 Henrik Nordsttrom + + * stage2/builtins.c (terminal_func): New --silent option + to supress the "Press any key to continue" message. Useful + in combination with --timeout. + 2002-04-06 Pavel Roskin * util/grub-install.in: Fix hardcoded /dev/hda1. Index: stage2/builtins.c =================================================================== RCS file: /cvsroot/grub/grub/stage2/builtins.c,v retrieving revision 1.129 diff -u -w -r1.129 builtins.c --- stage2/builtins.c 6 Apr 2002 12:15:13 -0000 1.129 +++ stage2/builtins.c 15 Apr 2002 12:44:27 -0000 @@ -3976,6 +3976,7 @@ int dumb = 0; int saved_terminal = terminal; int lines = 0; + int silent = 0; /* Get GNU-style long options. */ while (1) @@ -4003,6 +4004,8 @@ return 1; } } + else if (grub_memcmp (arg, "--silent", sizeof ("--silent") - 1) == 0) + silent = 1; else break; @@ -4108,7 +4111,7 @@ } /* Prompt the user, once per sec. */ - if ((time1 = getrtsecs ()) != time2 && time1 != 0xFF) + if ((time1 = getrtsecs ()) != time2 && time1 != 0xFF && !silent) { grub_printf ("Press any key to continue.\n"); time2 = time1; @@ -4136,7 +4139,7 @@ "terminal", terminal_func, BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, - "terminal [--dumb] [--timeout=SECS] [--lines=LINES] [console] [serial]", + "terminal [--dumb] [--timeout=SECS] [--lines=LINES] [--silent] [console] [serial]", "Select a terminal. When serial is specified, wait until you push any key" " to continue. If both console and serial are specified, the terminal" " to which you input a key first will be selected. If no argument is"