Get the current terminal control settings
#include <termios.h>
int tcgetattr( int fildes,
struct termios *termios_p );
libc
The tcgetattr() function gets the current terminal control settings for the opened device indicated by fildes, and stores the results in the structure pointed to by termios_p.
See tcsetattr().
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
errno, fpathconf(), tcsetattr(), termios
Chapter 7 of POSIX 1003.1