Get the terminal properties
#include <sys/dcmd_chr.h> #define DCMD_CHR_TCGETATTR __DIOF(_CMD_IOCTL_TTY, 19, struct termios) /* TIOCGETA */
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device. |
dcmd | DCMD_CHR_TCGETATTR |
dev_data_ptr | A pointer to a struct termios |
n_bytes | sizeof(struct termios) |
dev_info_ptr | NULL |
This command gets the current terminal control settings of a device. It's also implemented as the TIOCGETA ioctl() command.
None.
A filled-in termios structure.
DCMD_CHR_TCSETATTR, DCMD_CHR_TCSETATTRD, DCMD_CHR_TCSETATTRF, TIOCGETA
devctl(), tcgetattr(), termios in the QNX Neutrino C Library Reference