All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jiří ‘bindiff’ Wolker via Grub-devel" <grub-devel@gnu.org>
To: grub-devel@gnu.org
Cc: "Jiří ‘bindiff’ Wolker" <jwo@jwo.cz>, projects@jwo.cz
Subject: [PATCH v2 3/3] Documentation for the --menutitle option
Date: Mon, 26 May 2025 18:21:11 +0200	[thread overview]
Message-ID: <878qmixllx.fsf@jwo.cz> (raw)
In-Reply-To: <87plfuz2bb.fsf@gnat.mail-host-address-is-not-set>

---
 docs/grub.texi | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/docs/grub.texi b/docs/grub.texi
index 34b3484dc..5b5e40c49 100644
--- a/docs/grub.texi
+++ b/docs/grub.texi
@@ -1845,7 +1845,7 @@ definitions do not affect the exit status in @code{$?}.  When executed, the
 exit status of a function is the exit status of the last command executed in
 the body.
 
-@item menuentry @var{title} [@option{--class=class} @dots{}] [@option{--users=users}] [@option{--unrestricted}] [@option{--hotkey=key}] [@option{--id=id}] @{ @var{command}; @dots{} @}
+@item menuentry @var{title} [@option{--class=class} @dots{}] [@option{--users=users}] [@option{--unrestricted}] [@option{--hotkey=key}] [@option{--id=id}] [@option{--menutitle=text}] @{ @var{command}; @dots{} @}
 @xref{menuentry}.
 @end table
 
@@ -6034,7 +6034,7 @@ These commands can only be used in the menu:
 
 @deffn Command menuentry @var{title} @
  [@option{--class=class} @dots{}] [@option{--users=users}] @
- [@option{--unrestricted}] [@option{--hotkey=key}] [@option{--id=id}] @
+ [@option{--unrestricted}] [@option{--hotkey=key}] [@option{--id=id}] [@option{--menutitle=text}] @
  [@var{arg} @dots{}] @{ @var{command}; @dots{} @}
 This defines a GRUB menu entry named @var{title}.  When this entry is
 selected from the menu, GRUB will set the @var{chosen} environment variable
@@ -6060,6 +6060,13 @@ The @option{--id} may be used to associate unique identifier with a menu entry.
 @var{id} is string of ASCII aphanumeric characters, underscore and hyphen
 and should not start with a digit.
 
+The @option{--menutitle} can override the text displayed above the
+frame in which the menu is shown. This is useful especially for the
+@command{submenu}, which shares options with
+@command{menuentry}. Nested menus will inherit the menu title, unless
+explicitly replaces. Using an empty string causes the @var{title} of
+the option to be used as the menu title.
+
 All other arguments including @var{title} are passed as positional parameters
 when list of commands is executed with @var{title} always assigned to @code{$1}.
 @end deffn
@@ -6071,7 +6078,7 @@ when list of commands is executed with @var{title} always assigned to @code{$1}.
 @deffn Command submenu @var{title} @
  [@option{--class=class} @dots{}] [@option{--users=users}] @
  [@option{--unrestricted}] [@option{--hotkey=key}] [@option{--id=id}] @
- @{ @var{menu entries} @dots{} @}
+ [@option{--menutitle=text}] @{ @var{menu entries} @dots{} @}
 This defines a submenu.  An entry called @var{title} will be added to the
 menu; when that entry is selected, a new menu will be displayed showing all
 the entries within this submenu.
-- 
2.45.3


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

      parent reply	other threads:[~2025-05-27 14:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-27 11:54 [PATCH v2 0/3] Allow script-configurable GRUB menu title Jiří 'bindiff' Wolker via Grub-devel
2025-05-25 19:55 ` [PATCH v2 1/3] Customization of " Jiří Wolker via Grub-devel
2025-05-26 16:15 ` [PATCH v2 2/3] Option to set title of submenus Jiří Wolker via Grub-devel
2025-05-27 13:14   ` Vladimir 'phcoder' Serbinenko
2025-05-27 13:18     ` Jiří 'bindiff' Wolker via Grub-devel
2025-05-26 16:21 ` Jiří ‘bindiff’ Wolker via Grub-devel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878qmixllx.fsf@jwo.cz \
    --to=grub-devel@gnu.org \
    --cc=jwo@jwo.cz \
    --cc=projects@jwo.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.