![]() |
![]() |
![]() |
Set terminal attributes
#include <termios.h> int cfmakeraw( struct termios * termios_p );
libc
The cfmakeraw() function sets the terminal attributes as follows:
termios_p->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); termios_p->c_oflag &= ~OPOST; termios_p->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); termios_p->c_cflag &= ~(CSIZE|PARENB); termios_p->c_cflag |= CS8;
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
errno, cfgetispeed(), cfgetospeed(), cfsetispeed(), cfsetospeed(), tcgetattr(), tcsetattr()
![]() |
![]() |
![]() |