MENU(1)

NAME
menu - create or select an mgr pop-up menu

SYNOPSIS
menu [-sn] [-ln] [-nname] [-fn] [-dname] [menufile] ...

DESCRIPTION
Menu downloads or selects a pop-up menu for the MGR window manager.

The named input files (or standard input by default) should contain one item-action pair per line, delimited by by one or more delimiter characters (TABs by default). Items and actions are arbitrary character strings not containing the delimiter character. The items are displayed in the pop-up menu, and the user is allowed to select an item using the mouse and middle button. The corresponding action string is then written to the standard input of the process running in the window. If an action ends with \c, the newline character following the action is suppressed.

Optionally, the menu file may begin with a delim=char line to specify an alternate delimiter, followed by any number of name=anything lines to specify one or more lines of menu name, and a font=n line to select a font.

OPTIONS

-sn selects the menu previously loaded into position n; that is, it binds the menu in position n to the middle mouse button. No downloading takes place.

    -s by itself allows downloading of a new menu, without it being selected.

-ln causes loading of a new menu into position n. By default, n is 1. The loaded menu is also selected (unless -s was specified).

-nname
    specifies a name for the menu. Alternatively, a name may be specified by one or more lines of the form name=anything in the menu file. By default, the name of the menu is taken to be the name of the input file converted to upper-case. The menu's name is displayed at the top of the menu.

    -n by itself suppresses the name altogether.

-fn specifies that the font loaded into font postion n will used for the menu. Default is 6.

-dchar
    indicates that char will be used instead of the default, TAB, to delimit items from actions in the menu file. The total number of characters in all actions and items may not exceed approximately 1000.

EXAMPLES
menu <<!
delim=:
name=    FRUITS
name=--------------
apples:echo apples
oranges:echo oranges
pears:echo pears
passion fruit:echo passion fruit
three cherries:echo Jackpot!
!

AUTHOR
Paul A. Tukey