Asynchronous Serial Communications Programmer's Reference Manual (32022-90052)

Chapter 8 195
Intrinsics Reference
FCONTROL(38)
FCONTROL(38)
Parameters
controlcode 38 — Sets terminal type.
param 16-bit unsigned integer by reference
(required)
Passes the value if the system defined terminal type to
be associated with an asynchronous port.
Notes FCONTROL with a controlcode value of 38 allows
you to change the terminal type associated with a port
to another system defined terminal type. The new
terminal type will be in effect for the port until you
change it through another FCONTROL call, or until
the device is closed. When the device is closed, the port
is reset to its configured default.
If you change the terminal type of a terminal running
an interactive session, you should be sure to reset it to
the previously assigned terminal type when your
program ends, unless you want the new terminal type
to be in effect for other files opened on the device. To be
sure you are able to reset to the previous terminal type,
your program should call FCONTROL(39) to determine
the current terminal type before calling
FCONTROL(38) to change to the new setting. (Note
that the current terminal type may be different from
the default (configured) terminal type.)
The terminal type specified by FCONTROL(38) mustbe
a system defined terminal type currently supported on
MPE/iX systems. If any other value is used, the
intrinsic will return an error condition of CCL.
You cannot use FCONTROL to change to or from a user
defined terminal type. You must use
FDEVICECONTROL to perform this function with
terminal types defined through Workstation
Configurator.
If issued against a terminal connected via PAD, DTC
Telnet, or Telnet/iX, this call will change the terminal
type setting, but will have no impact on how the device
actually operates. A CCE condition code will be
returned.