Updated: April 19, 2023 |
Get the current terminal control settings
#include <termios.h> int tcgetattr( int filedes, struct termios *termios_p );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The tcgetattr() function gets the current terminal control settings for the opened device indicated by filedes, and stores the results in the structure pointed to by termios_p.
For more information, see chapter 7 of POSIX 1003.1
See tcsetattr().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |