Defining Menus

If the port is type ANSI, menu items can be selected by either using the up- and down- arrow keys or by entering the item number. To use the arrow keys, press the up- or down-arrow key until the desired item is highlighted and press Return.

If the port is type SOFTCOPY or HARDCOPY, you can still enter a menu but the arrow keys are disabled. Enter the item number to select a menu item.

Exiting from a Menu

Unless the system manager wants to set up a captive menu (refer to the following section), all menus should have an executable line for LEAVE MENU. To exit from the menu, select this line (which has the display string “GOTO Command Line” on the default menu MAIN).

If the port is privileged, it is also possible to exit from the menu by entering Ctrl/C while the menu is displayed. This prevents you from being “trapped” if you accidentally create and enter a menu without a LEAVE MENU or LOGOUT command.

Using Menus to Set Up a Captive Port

A system manager can use the menus feature to set up a captive port such that users can execute commands from within the menus only. To do this, define a menu that has a LOGOUT command but no LEAVE MENU command, make this menu the default menu for the port, and define the port nonprivileged.

Displaying a Menu Definition

To display the definition for a given menu, use the SHOW MENU command.

Example: Displaying a Menu Definition

The following example shows how to display the definition for the HOSTS menu:

Local> SHOW MENU HOSTS

Menu:

Hosts

Enabled on ports: 2, 3, 5

Line 5 Execute:

CONNECT LAT HOST_1

Line 5 Display:

Use DEC Host

User Interface 3-11