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