grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] 5/5 Graphical menu (gfxmenu)


From: Colin D Bennett
Subject: [PATCH] 5/5 Graphical menu (gfxmenu)
Date: Sat, 31 Jan 2009 12:59:39 -0800

This long-awaited patch adds graphical menu support to GRUB 2.  It is
largely the result of my work during the Google Summer of Code 2008.

The graphical menu system supports image-based themes, of which I have
created several sample themes[1].

There are still a few important things that need to be done on gfxmenu
before it is completely ready for end-users (off the top of my head):

- Need a good way to switch themes at runtime.  I want to add a popup
  menu that lists the available themes and lets the user choose one.
  (Currently the keys 1, 2, 3, and 4 are hardcoded to switch between my
  sample themes...)

- gfxmenu interacts badly with gfxterm.  Running commands from the
  terminal withing gfxmenu that switch the video mode
  ('videotest basic', for instance) cause a crash when the command
  returns.  I think this has something to do with the interaction of
  video mode-switching and the GRUB output terminal.

The default theme is set in grub.cfg like so:

  set theme="/boot/grub/themes/proto/theme.txt"

Also, pressing 't' currently switches between graphical and text mode
menus, but by adding the following menu entries, it can be done from
the menu:

  menuentry "Switch to text menu" {
    set menuviewer="terminal"
  }
  menuentry "Switch to graphical menu" {
    set menuviewer="gfxmenu"
  }

Regards,
Colin

[1] <http://grub.gibibit.com/Themes>

Attachment: 05_gfxmenu.patch
Description: Text Data

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]