Get a terminal's special characters
#include <sys/ioctl.h> #define TIOCGETC _IOR('t', 18, struct tchars)
Argument | Value |
---|---|
fd | A file descriptor that you obtained by opening the device |
request | TIOCGETC |
Additional argument | A pointer to a struct tchars |
This command gets a terminal's special characters.
None.
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) */ };