Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

ttc()

Controls the terminal

Synopsis:

#include <sys/io-char.h >

int ttc(int type,
        void *ptr,
        int arg );

Arguments:

type
One of:
ptr
A pointer to the structure which will be updated with the new configuration data. Depending on the type argument, this argument will be a pointer to a structure of type TTYCTRL, TTYDEV, or TTYINIT.
arg
Data which describes the new setting. The values which are valid for this argument vary depending on the type argument.

Description:

This function configures the terminal's settings.

Returns:

0
Success.
-1
An error occurred.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread No

See also:

tti(), tto(), TTYDEV