Set terminal properties
#include <sys/dcmd_chr.h> #define DCMD_CHR_TCSETATTR __DIOT(_CMD_IOCTL_TTY, 20, struct termios) /* TIOCSETA */ #define DCMD_CHR_TCSETATTRD __DIOT(_CMD_IOCTL_TTY, 21, struct termios) /* TIOCSETAW */ #define DCMD_CHR_TCSETATTRF __DIOT(_CMD_IOCTL_TTY, 22, struct termios) /* TIOCSETAF */
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device. |
dcmd | DCMD_CHR_TCSETATTR, DCMD_CHR_TCSETATTRD, or DCMD_CHR_TCSETATTRF |
dev_data_ptr | A pointer to a struct termios |
n_bytes | sizeof(struct termios) |
dev_info_ptr | NULL |
These commands change the current terminal control settings of a device:
They're also implemented as devctl() commands:
devctl() command | ioctl() command |
---|---|
DCMD_CHR_TCSETATTR | TIOCSETA |
DCMD_CHR_TCSETATTRD | TIOCSETAW |
DCMD_CHR_TCSETATTRF | TIOCSETAF |
A termios structure.
None.
DCMD_CHR_TCGETATTR, TIOCSETA, TIOCSETAF, TIOCSETAW
devctl(), tcsetattr(), termios in the QNX Neutrino C Library Reference