Navigation

  • index
  • next |
  • previous |
  • barebox 2025.11.0 documentation »
  • 3. Command reference »
  • 3.7.8. menu - create and display menus

3.7.8. menu - create and display menus¶

3.7.8.1. Synopsis¶

Manage Menu:

3.7.8.2. Options¶

-m

menu

-l

list

-s

show

-e

menu entry

-a

add

-r

remove

-S

select

-A

auto select delay

-d

auto select description

3.7.8.3. Description¶

Advanced menu management:

Show menu:
menu -s -m MENU [-A delay] [-d auto_display]

List menu:
menu -l

Add a menu:
menu -a -m NAME -d DESC

Remove a menu:
menu -r -m NAME

Add an entry:
(-R for do no exit the menu after executing the command)
(-b for box style 1 for selected)
(and optional -c for the command to run when we change the state)
menu -e -a -m MENU -c COMMAND [-R] [-b 0|1] -d DESC

Add a submenu entry:
(-R is not needed)
(-b for box style 1 for selected)
(and -c is not needed)
menu -e -a -m MENU -u submenu -d [-b 0|1] DESC

Remove an entry:
menu -e -r -m NAME -n ENTRY

Select an entry:
menu -m <menu> -S -n ENTRY

List menu:
menu -e -l [menu]

Menu examples:
menu -a -m boot -d "Boot Menu"
menu -e -a -m boot -c boot -d "Boot"
menu -e -a -m boot -c reset -d "Reset"
Menu example:
menu -s -m boot

Logo of barebox

Table of Contents

  • 3.7.8. menu - create and display menus
    • 3.7.8.1. Synopsis
    • 3.7.8.2. Options
    • 3.7.8.3. Description

Previous topic

3.7.7. keys - Print informations about public keys

Next topic

3.7.9. menutree - create menu from directory structure

This Page

  • Show Source

Quick search

Navigation

  • index
  • next |
  • previous |
  • barebox 2025.11.0 documentation »
  • 3. Command reference »
  • 3.7.8. menu - create and display menus
© Copyright 2014, The barebox project. Created using Sphinx 8.1.3.