WXP version 5
File Reference

Shell Menu File (wxp.menu)

The WXP User's shell uses a menu to select programs and options.  In order to make the shell more extensible, the menu items and the menus themselves can be changed at any time.  This is done by modifying the "wxp.menu" file located in the WXP database directory (see file_path). This file lists all the menus, the labels used to describe each action and the command to run when the item is selected.  

FORMAT

The format of the file is as follows:

type label command

Where:

EXAMPLES

Here is a sample wxp.menu file:

   M   Main                         main
   I   Parsing_Programs             menu parse
   I   Plotting_Programs            menu plot
   I   Contouring_Programs          menu contour
   I   Meteorological_Calculations  menu calc
   M   Parse_Data                   parse
   I   Parse_Raw_Surface_Data       sa_parse
   I   Parse_Surface_Data           sa_parse -if=cvt
   I   Parse_Series_of_Surface_Data sa_parse -nh=-6 -if=cvt
   I   Parse_Upper_Air_Data         ua_parse
   I   Parse_MOS_Air_Data           fo_parse
   I   Parse_Forecasts              forecast
   I   Parse_Text_Data              parse
   M   Plot_Data                    plot
   I   Plot_Surface_Data            sfcwx
   I   Plot_Surface_Meteograms      statlog
   ...

The first menu is always the main menu. Lets break this down:

In this menu, all the items in this menu go to submenus.  Let's look at the first item:

Now if we look at the parse submenu, each item now runs a program.  In some cases, you will notice that command line parameters are specified.  This can be handy if you need to specialize an program for a particular application. This is especially handy in a classroom situation where special commands may need to be easily accessed through the WXP menu.

SEE ALSO


Last updated August 11, 1998