Guardian Programmer's Guide

Table Of Contents
Writing a Terminal Simulator
Guardian Programmer’s Guide 421922-014
24 - 11
Processing Setparam Messages
SETMODE function. The terminal-simulation process must respond to system
message -33 with a message in the following format:
A requester can perform many terminal-related functions by calling the SETMODE
procedure. Your terminal-simulation process must determine the appropriate
processing to perform for each SETMODE function.
Processing Setparam Messages
If the terminal-simulation process used SETMODE function 80 to allow requesters to
call SETPARAM, the process must read and respond to Setparam messages.
A Setparam message has the following format:
The terminal-simulation process must respond to system message -37 with a message
in the following format:
A requester can perform one terminal-related function by calling the SETPARAM
procedure. That function is SETPARAM function 3, which specifies the owner of the
BREAK key. Your terminal-simulation process should handle SETPARAM function 3 in
a manner similar to the way it handles SETMODE function 11; however, in processing
SETPARAM function 3, you must also process the BREAK tag information.
The SETPARAM functions are described in the Guardian Procedure Calls Reference
Manual.
Structure of -33 reply message:
replymsg[0] = -33
replymsg[1] = previous value of param1, if requested
replymsg[2] = previous value of param2, if requested
Structure of a Setparam message (system message -37):
sysmsg[0] = -37
sysmsg[1] = SETPARAM function code
sysmsg[2].<14> = set to 1 if param-array was specified in
SETPARAM call
sysmsg[2].<15> = set to 1 if last-param-array was specified
in the SETPARAM call
sysmsg[3] = the param-count parameter of the SETPARAM
call
sysmsg[4:n] = the param-array parameter of the SETPARAM
call
Structure of -37 reply message:
replymsg[0] = -37
replymsg[1] = value for last-param-count
replymsg[2] = value for last-param-array