1 Description: Reduce visual clutter in normal mode
2 Don't display introductory message about line editing unless we're actually
3 offering a shell prompt. (This is believed to be a workaround for a
4 different bug. We'll go with this for now, but will drop this in favour of
5 a better fix upstream if somebody figures out what that is.)
7 Don't clear the screen just before booting if we never drew the menu in the
9 Author: Colin Watson <cjwatson@ubuntu.com>
10 Forwarded: http://lists.gnu.org/archive/html/grub-devel/2009-09/msg00056.html
11 Last-Update: 2011-01-05
13 Index: b/grub-core/normal/main.c
14 ===================================================================
15 --- a/grub-core/normal/main.c
16 +++ b/grub-core/normal/main.c
18 grub_normal_read_line_real (char **line, int cont, int nested)
21 + static int displayed_intro;
23 + if (! displayed_intro)
25 + grub_normal_reader_init (nested);
26 + displayed_intro = 1;
35 - grub_normal_reader_init (nested);
40 Index: b/grub-core/normal/menu.c
41 ===================================================================
42 --- a/grub-core/normal/menu.c
43 +++ b/grub-core/normal/menu.c
48 + int initial_timeout = grub_menu_get_timeout ();
50 boot_entry = run_menu (menu, nested, &auto_boot);
54 continue; /* Menu is empty. */
57 + /* Only clear the screen if we drew the menu in the first place. */
58 + if (initial_timeout != 0)
62 grub_menu_execute_with_fallback (menu, e, autobooted,