Disable signal catching and enable real posix raw mode

This commit is contained in:
Guillaume J. Charmes
2013-04-09 11:06:17 -07:00
parent 9c3d2b6a4e
commit 3f63b87807
2 changed files with 11 additions and 1 deletions
+2 -1
View File
@@ -15,7 +15,8 @@ void MakeRaw(int fd) {
ioctl(fd, TCGETS, &t);
t.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);
t.c_lflag &= ~(ECHO | ECHONL | ICANON | IEXTEN);
t.c_oflag &= ~OPOST;
t.c_lflag &= ~(ECHO | ECHONL | ICANON | IEXTEN | ISIG);
t.c_cflag &= ~(CSIZE | PARENB);
t.c_cflag |= CS8;