tty.c: add IGNCR. (helps with TCP connections)
authorBrett Gordon <beretta42@gmail.com>
Tue, 5 Apr 2016 16:17:09 +0000 (12:17 -0400)
committerBrett Gordon <beretta42@gmail.com>
Thu, 7 Apr 2016 02:26:09 +0000 (22:26 -0400)
Kernel/tty.c

index 3762da9..c380a21 100644 (file)
@@ -316,8 +316,12 @@ int tty_inproc(uint8_t minor, unsigned char c)
                trap_monitor();
 #endif
 
-       if (c == '\r' && (t->termios.c_iflag & ICRNL))
-               c = '\n';
+       if (c == '\r' ){
+               if(t->termios.c_iflag & IGNCR )
+                       return 1;
+               if(t->termios.c_iflag & ICRNL)
+                       c = '\n';
+       }
        if (c == '\n' && (t->termios.c_iflag & INLCR))
                c = '\r';