Get the terminal properties in a termios structure
#include <sys/ioctl.h> #define TCGETS _IOR('T', 13, struct termios)
Argument | Value |
---|---|
fd | A file descriptor that you obtained by opening the device |
request | TCGETS |
Additional argument | A pointer to a struct termios |
This command gets the current terminal control settings of a device. It's similar to the TIOCGETA ioctl() command.
The TCGETA ioctl() command is similar, but it uses a struct termio instead of a struct termios.
None.
A filled-in termios structure.