TIOCGETC

Get a terminal's special characters

Synopsis:

#include <sys/ioctl.h>

#define TIOCGETC        _IOR('t', 18, struct tchars)

Arguments to ioctl():

Argument Value
fd A file descriptor that you obtained by opening the device
request TIOCGETC
Additional argument A pointer to a struct tchars

Description:

This command gets a terminal's special characters.

Input:

None.

Output:

A filled-in struct tchars (defined in <sgtty.h>):

struct tchars {
    char t_intrc;   /* interrupt */
    char t_quitc;   /* quit */
    char t_startc;  /* start output */
    char t_stopc;   /* stop output */
    char t_eofc;    /* end-of-file */
    char t_brkc;    /* input delimiter (like nl) */
};

See also:

TIOCSETC

ioctl() in the QNX Neutrino C Library Reference