Guardian Programmer's Guide

Table Of Contents
Writing a Command-Interpreter Monitor ($CMON)
Guardian Programmer’s Guide 421922-014
23 - 7
Retaining Default Values
Retaining Default Values
Your $CMON process can reply to the Config^msg message by returning a text
message to the TACL process and accepting the default parameter values as they are.
Here, $CMON returns the Config^text^reply structure as follows:
The following code fragment returns the Config^text^reply message without any text
message. To do this, you simply set the length of the reply to two bytes and return a
nonzero value in the reply code:
CONFIG^TEXT^REPLY.REPLY^CODE := -1;
CALL READUPDATEX(RECV^NUM,SBUFFER,RCOUNT,BYTES^READ);
BEGIN
REPLY^LEN := 2;
CALL REPLYX(CONFIG^TEXT^REPLY,REPLY^LEN);
END;
Setting Configuration Parameters
To change the configuration parameters, $CMON must reply with the Config^reply
structure:
Format of Config^text^reply structure:
STRUCT CONFIG^TEXT^REPLY;
BEGIN
INT REPLYCODE; ![0] <> 0
STRING REPLYTEXT[0:n]; ![1] display message; maximum
! 132 characters
END;
Format of Config^reply structure:
STRUCT CONFIG^REPLY;
BEGIN
INT REPLYCODE; ![0] value 0
INT COUNT; ![1] number of integer
parameters
INT AUTOLOGOFFDELAY; ![2]
INT LOGOFFSCREENCLEAR; ![3]
INT REMOTESUPERUSERID; ![4]
INT BLINDLOGON; ![5]
INT NAMELOGON; ![6]
INT CMONTIMEOUT; ![7]
INT CMONREQUIRED; ![8]
INT REMOTECMONTIMEOUT; ![9]
INT REMOTECMONREQUIRED; ![10]
INT NOCHANGEUSER; ![11]
INT STOPONFEMODEMERR; ![12]
INT REQUESTCMONUSERCONFIG; ![13]
END;