HPlogo Asynchronous Serial Communications Programmer's Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 8 Intrinsics Reference

FCONTROL(39)

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Glossary

 » Index

Parameters

controlcode

39 — Determines current terminal type.

param

16-bit unsigned integer by reference (required)

Returns the terminal type currently associated with an asynchronous port.

Notes

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.

Condition Codes

CCE

Request granted.

CCG

Not returned by this intrinsic.

CCL

Failed because the file number specified did not belong to this process or the device is not a terminal.

Additional Discussion

See also discussions of FCONTROL(37) and FCONTROL(38) in this manual.

Feedback to webmaster