MPE/iX Intrinsics Reference Manual (32650-90905)
Chapter 5 137
Command Definitions (FCONTROL - FLOCK)
FCONTROL
Parity cannot be used with 8-bit character sets.
Ignored for devices connected through PAD.
37/U16 Set terminal type and speed:
Item
passes a value specifying line speed and terminal type. Bits (0:11)
specify the line speed; bits (11:5) specify the terminal type.
Ensure that the speed associated with a device matches the physical speed
setting of the device and modem (if part of the connection). If the device
speed is being changed programmatically, request that the speed setting
be manually changed on the device.
If an attempt is made to set an unsupported speed or terminal type,
condition code CCL (1) is returned.
Do not use this call to specify a user-defined terminal type.
If used for devices connected through PAD, the call changes the terminal
type setting, but does not change how the device actually operates.
Condition code CCE (2) is returned.
38/U16 Set terminal type
Item
passes the value of the system-defined terminal type to be associated
with an asynchronous port.
Changes the terminal type associated with a port to another
system-defined terminal type. The new terminal type remains in effect
until another FCONTROL call is made or the device is closed. If the device is
closed, the port resets to its configured terminal type.
The terminal type specified must be a currently supported system-defined
terminal type. If another value is used, condition code CCL (1) is returned.
This call cannot be used to change to a user-defined terminal type.
If used for a terminal connected through PAD, there is no effect on the
terminal control settings of the device. Condition code CCE (2) is returned.
39/U16 Obtain terminal type information
Item
returns the terminal type associated with the asynchronous port.
Use this information to get the original setting before calling
itemnum
=37
or 38.
Note: Do not confuse the current terminal type returned with the default
terminal type specified during system configuration. Changing the
terminal type during logon or through system intrinsics can cause a
difference from the configured setting. To reset the configured terminal
type, use
itemnum
=37 and
item
=0 or close the device.
40/U16 Obtain terminal output speed
Item
returns the current line speed associated with an asynchronous port
in characters per second. Use this information to get the original setting
before calling
itemnum
=11 or 37.