summaryrefslogblamecommitdiff
path: root/emulators/qemu/files/patch-vl.c-serial
blob: 76c290e28abb4190f532cf89bc9a4c35c46d372b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                 
Index: qemu/vl.c
@@ -1606,10 +1606,13 @@
     cfsetospeed(&tty, spd);
 
     tty.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP
-                          |INLCR|IGNCR|ICRNL|IXON);
-    tty.c_oflag |= OPOST;
+                          |INLCR|IGNCR|ICRNL|IXON|IMAXBEL);
+    tty.c_oflag &= ~OPOST; /* Don't do any output processing! */
     tty.c_lflag &= ~(ECHO|ECHONL|ICANON|IEXTEN|ISIG);
     tty.c_cflag &= ~(CSIZE|PARENB|PARODD|CRTSCTS|CSTOPB);
+#ifdef __FreeBSD__
+    cfmakeraw(&tty);
+#endif
     switch(data_bits) {
     default:
     case 8: