Materiale rimasto indietro
[gapil.git] / listati / cfmakeraw.c
diff --git a/listati/cfmakeraw.c b/listati/cfmakeraw.c
new file mode 100644 (file)
index 0000000..56ce951
--- /dev/null
@@ -0,0 +1,6 @@
+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;