#include <qp0ztrml.h> int Qp0zSetTerminalMode( unsigned char mode, unsigned char type, unsigned char *reserved );;Service Program Name: QP0ZTRMLC
The Qp0zSetTerminalMode() function allows a program to control the input mode and wrap mode of the terminal window to which it is connected. See Generic Terminal Concepts for details about using a terminal.
Qp0zSetTerminalMode() supports setting the following modes:
Mode to set for the terminal window. The valid values are QP0Z_TERMINAL_INPUT_MODE and QP0Z_TERMINAL_WRAP_MODE.
Type associated with the mode. The valid values for QP0Z_TERMINAL_INPUT_MODE are QP0Z_TERMINAL_HIDDEN, QP0Z_TERMINAL_NORMAL, and QP0Z_TERMINAL_PREVIOUS. The valid values for QP0Z_TERMINAL_WRAP_MODE are QP0Z_TERMINAL_TRUNCATE, QP0Z_TERMINAL_WRAP, and QP0Z_TERMINAL_PREVIOUS.
Reserved parameter that must be set to NULL.
None.
0 | Qp0zSetTerminalMode() was successful. |
value | Qp0zSetTerminalMode() was not successful. The value returned is an errno indicating the failure. |
If Qp0zSetTerminalMode() is not successful, the return value usually indicates one of the following errors. Under some conditions, the return value could indicate an error other than those listed here.
Descriptor not valid.
A file descriptor argument was out of range, referred to a file that was not open, or a read or write request was made to a file that is not open for that operation.
The address used for an argument was not correct.
In attempting to use an argument in a call, the system detected an address that was not valid.
Correct the argument in error.
The value specified for the argument is not correct.
A function was passed incorrect argument values or an operation was attempted on an object and the operation specified is not supported for that type of object.
Correct the argument in error and try your request again.
Input/output error.
A physical I/O error occurred.
See the previous message in the job log. Correct any errors indicated there and try your operation again.
Inappropriate I/O control operation.
Unknown system state.
The operation failed due to an unknown system state. See any messages in the job log and correct any errors that may be indicated and then retry the operation.
Top | UNIX-Type APIs | APIs by category |