From: Brett Gordon Date: Tue, 5 Apr 2016 16:17:09 +0000 (-0400) Subject: tty.c: add IGNCR. (helps with TCP connections) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=1099e9f890703ba76a105a7ea9f6e133ad573b2c;p=FUZIX.git tty.c: add IGNCR. (helps with TCP connections) --- diff --git a/Kernel/tty.c b/Kernel/tty.c index 3762da91..c380a213 100644 --- a/Kernel/tty.c +++ b/Kernel/tty.c @@ -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';