diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2009-01-27 17:30:38 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2009-01-27 17:30:38 +0000 |
commit | 8b40fda0dc40ead9ddc4a9866f90ae6c379f012b (patch) | |
tree | fd9ad997c4a293ba571cbe466212512d7d08bf1b /src/menu.inc | |
parent | 249c59a30616febf832864adde00562ab61358bf (diff) | |
download | bootloader-theme-8b40fda0dc40ead9ddc4a9866f90ae6c379f012b.tar bootloader-theme-8b40fda0dc40ead9ddc4a9866f90ae6c379f012b.tar.gz bootloader-theme-8b40fda0dc40ead9ddc4a9866f90ae6c379f012b.tar.bz2 bootloader-theme-8b40fda0dc40ead9ddc4a9866f90ae6c379f012b.tar.xz bootloader-theme-8b40fda0dc40ead9ddc4a9866f90ae6c379f012b.zip |
only show the "Boot Options" entry when Fkey for "Kernel Option" is pressed
the difficulty here is to workaround the "Boot Options" from dirtying the
display of the panel below it. A solution would be to move the "Boot Options"
upper to leave some room between it and the panel.
also adding the "Kernel Option" choice for grub, since otherwise you can't
edit "Boot Options"
Diffstat (limited to 'src/menu.inc')
-rw-r--r-- | src/menu.inc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/menu.inc b/src/menu.inc index d473cb8..2f957c1 100644 --- a/src/menu.inc +++ b/src/menu.inc @@ -84,7 +84,10 @@ % ( ) == > ( ) % /boot.input.setup { - % boot.show not { return } if + % HACK: we do not need to do this function if not boot.show, + % and since we have some ugly overlap of bootoptions on the panel + % we really do not want to do it if not really useful + boot.show not { return } if boot.ed.list { dup .inp_x get over .inp_y get boot.ed.height add moveto @@ -158,7 +161,12 @@ edit.done } ifelse } forall - boot.ed.list boot.window .ed.focus get get dup .inp_show get { edit.showcursor } { pop } ifelse + boot.ed.list boot.window .ed.focus get get dup .inp_show get { + edit.showcursor + % HACK: there is some ugly overlap of bootoptions on the panel + % so force to redraw the panel after displaying bootoptions + panel.show + } { pop } ifelse boot.ed.list { dup .inp_show get .inp_visible exch put |