HP 3000 Manuals

6-2. HP32201'USERINIT PROCEDURE. [ EDIT/3000:Reference Manual ] MPE/iX 5.0 Documentation


EDIT/3000:Reference Manual

6-2.  HP32201'USERINIT PROCEDURE. 

USERINIT will allow for a user written procedure to return a string which
is executed as the first command(s) when an EDIT/3000 process is begun.
SET com- mands (see Section III), for example, could be specified.  In
addition, the value returned (logical 0,1,2,or 3) determines if none,
one, or both of the other two procedures (USERCOMMAND and USERADD) are to
be invoked.

This procedure is called each time the user has initiated an EDIT/3000
process by using the MPE command

     :RUN EDITOR.PUB.SYS; PARM=16

The parameters for this procedure are as described in paragraph 6-1.
STRING contains the characters of a command line, which may consist of
only one command or of multiple commands separated by semicolons.  The
first character of the array STRING must be a semicolon and the array
must be terminated by an ASCII carriage return (%15).

A logical 3 (or TRUE) should be returned if both USERCOMMAND and USERADD
are to be invoked.  Returning logical 2 results in invoking only USERADD,
while returning a logical 1 invokes only USER- COMMAND. If logical 0 (or
FALSE) is returned, calls to these other procedures will not be executed.
It is the procedure's responsibility to inform the user of which commands
are executed when EDIT/3000 is begun and whether the other procedures are
invoked or not.

See the example in paragraph 6-5.


MPE/iX 5.0 Documentation