Help text describes a proc and the parameters associated with the proc. The Terminal Monitor accesses the help text for a proc when:
The Terminal Monitor searches for proc help text by looking for the "HELP" parameter on the PROCESS, PROCEDURE, GLOBAL, or PARMSET command in the PDF; if the "HELP" parameter is not specified, TAE looks for a "HLP" type file with the same name as the proc.
The existence of help text for a proc is optional. If the "LEVELl" text (see below) does not exist when tutor mode is entered for a proc, then tutor processing will display "description not available" as the description for each parameter. If no help file exists when help is requested for a proc, TAE responds with "help not available".
The "parameter summary page" produced by parameter help in tutor is automatically generated from the PDF definition of the parameter. The summary page is produced even when there is no programmer-supplied parameter help.
.TITLE
Text to be used for the header of the tutor and HELP displays
.HELP
General help text to be displayed for the HELP command
.LEVELl
.VAR variable-1
Level 1 help text for variable-1.
.VAR variable-2 -subcommand-1
Level 1 help text for variable-2 defined for subcommand-1.
.
.
.
.SUBCMD subcommand-1
Level 1 help text for the named subcommand.
.LEVEL2
.VAR variable-1
Level 2 help text for variable-1.
.VAR variable-2 -subcommand-1
Level 2 help text for variable-2 defined for subcommand-1.
.
.
.
.SUBCMD subcommand-1
Level-2 help text for the named subcommand.
.END
The help directives begin with a period because the directives bracket free-field text. The help directives are:
.TITLE
Demonstration Image Copy Driver
.HELP
IMGCOPY does an image copy using one of three fixed
windows depending on the "from" file name:
FILE NAME WINDOW
--------- ------
"alaska" (0,2048,0,2048)
"hawaii" (0,256,0,156)
Anything else (0,512,0,512)
!**** Level 1 help text.
.LEVEL 1
.VAR FROM
Input file name.
.VAR TO
Output file name.
.VAR WINDOW
Image Window
!**** Level 2 help text.
.LEVEL2
.VAR FROM
This is the file name in standard UNIX format. Example:
/mydir/myimages/nebraska
.VAR TO
This is the file name in standard UNIX format. Example:
/mydir/myimages/nebraska
.VAR WINDOW
This is the image window in lines by pixels. The first two numbers are
the first and last line numbers of a rectangle, and the second two
numbers are the first and last pixels.
.END
|
The following rules apply to the use of help directives:
The title line(s) are displayed exactly as specified in the text following .TITLE; no formatting (e.g., centering) is done.
Menu and help displays may be made sensitive to the current run-time session. The contents of TAE global variables may be substituted into MDF and HLP files as the files are being interpreted by TAE. The ampersand (&) character introduces the variable name using the same rules as the substitution feature in the TAE command language. (See Section 3.3.2.8.) When TAE encounters an ampersand in an MDF or HLP file or in the help extension in a PDF, the next syntactic element is taken as the name of a global variable, and TAE substitutes the value of the variable.
As an example, consider the following MDF segment:
.TITLE
This is the root menu.
&SUSERLIB is your current default directory.
When the menu is displayed, the string "&$USERLIB" is replaced by the contents of the TAE global variable $USERLIB.
Some considerations with respect to this substitution feature are:
&GEMPAK.DEVICE is the current device type you
are using.
The &"FTYPE"command that you want is ...
On the screen, this line would appear:
The subcommand that you want is ...
The current default directory is &"$USERLIB".
The current value of EPSILON is &"EPSILON".
The following examples show some applications of the substitution feature:
.TITLE
Widget Selection
This menu is used for selecting the next widget to be
waddled. &OCC.WIDGETS widgets have been waddled in
your current session and there have been &OCC.ERRORS
errors. If the errors are excessive, please give the
officer of the day, &OCC.ODNAME, a call at
&"OCC.ODFONE". (He has received &OCC.ODCALLS calls so
far today and his current disposition is
&"OCC.ODDISP".)
.MENU SATKILL &OCC.SATKILL.ON Abort all spacecraft operations. &OCC. SATKILL.OFF
In this example, the string variables OCC.SATKILL.ON and OCC.SATKILL.OFF would contain null strings for normal display or escape sequences for highlighting.
INCLUDE &OCC.PREPASS
.TITLE &OCC.TITLE &OCC.MC1 ! command for entry 1 &OCC.ME1 ! description of entry 1 &OCC.MC2 ! command for entry 2 &OCC.ME2 ! description of entry 2 &OCC.MC3 ! command for entry 3 &OCC.ME3 ! description of entry 3