ttc()

Configure the terminal's settings

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(TTC_INIT_PROC and TTC_INIT_START ), TTYDEV(TTC_INIT_CC , TTC_INIT_TTYNAME, TTC_INIT_POWERΒΈ TTC_INIT_ATTACH and TTC_INIT_DETACH ), or TTYINIT(TTC_INIT_RAW , TTC_INIT_EDIT , TTC_SET_OPTION and TTC_INIT_QUEUE ).
arg
Data that describes the new setting. The values that are valid for this argument vary depending on the type argument. The arg values for the following type arguments are as follows:

Description:

This function configures the terminal's settings.

Returns:

0
Success.
-1
An error occurred.
arg
when you call ttc() with an argument of TTC_SET_OPTION, and arg isn't one of the default options.

Classification:

QNX Neutrino

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

See also:

TTYCTRL, TTYDEV, TTYINIT, tti(), tto()