A call to FCONTROL with a controlcode
value of 39 allows you to determine the terminal type that is currently
associated with an asynchronous port. You can then use this information
to return the port to its original setting after you have changed
the terminal type through FCONTROL(37), FCONTROL(38), or FDEVICECONTROL.
Do not confuse the current terminal type returned by this
intrinsic with the default terminal type specified during system
configuration through NMMGR. Changing the terminal type during logon
or through the system intrinsics can cause the current terminal
type to be different from the configured setting. To reset to the
configured terminal type, use FCONTROL(37) specifying 0 as the value
of param. (Note that FCONTROL(37) will restore
the default line speed as well.)
Closing the device also restores its settings to configured
default values.