ubmenu
is a program that displays interactive menus on the screen or as a basic HTML web page, based on instructions read from a menu file (typically ending in .men
).
These menu files define the screen layout, user options, and associated commands or scripts to be executed when an option is selected. The program offers various command-line flags to customize its behavior, such as setting a title, omitting the status bar, requiring a password, enabling debugging, specifying screen geometry, and displaying the menu as a web page with links.
NAME
ubmenu – menu program
SYNOPSIS
ubmenu -[C* H* L W c* d g* o* p* w*] <menu> {<directory>}
DESCRIPTION
Reads a menu file that details screen displays and user options.
Menu files end in “.men”, but this is not given when calling the program.
FLAGS
OPTION | DESCRIPTION |
-C <security> | Read security information from <security> rather than the men |
-H <title> | Title for head element in web page |
-L | Omit the status bar from the top of the screen |
-W | Issue a warning before exiting the menu |
-c <command> | Execute the command section <command> in the menu |
-d | Turn on debug when reading a menu |
-g <dimensions> | This controls the screen geometry. It is used to choose a terminal type that is different from the default. The new terminal type is AT386-geometry. Suitable terminfo definitions will then set wide/narrow/long etc. screens. Ubmenu sends 'is2' at the start of the program (to set the screen) and ‘rs2’ at the end (to reset the screen). |
-o <option> | Run the script for <option> |
-p <msg> | Password required before executing this menu. <msg> is the message to be displayed when prompting for a password. |
-w <Web Flag> | Display as html. This will display the menu as web page and links to execute options. Only ‘F’ is currently supported as the <Web Flag> |
RETURN
Normal exit value is 0. An exit value of UEPWD 61 means that a password was required on entry to the menu and the password check failed.
EXAMPLE
To run the menu stock.men in the directory “/usr/stock”.
ubmenu stock /usr/stock
To run a menu with a password required.
ubmenu -p "LOGIN TO MENU" stock