From 1099e9f890703ba76a105a7ea9f6e133ad573b2c Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Tue, 5 Apr 2016 12:17:09 -0400 Subject: [PATCH] tty.c: add IGNCR. (helps with TCP connections) --- Kernel/tty.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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'; -- 2.34.1