public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3607f74
)
tty.c: add IGNCR. (helps with TCP connections)
author
Brett Gordon
<beretta42@gmail.com>
Tue, 5 Apr 2016 16:17:09 +0000
(12:17 -0400)
committer
Brett Gordon
<beretta42@gmail.com>
Thu, 7 Apr 2016 02:26:09 +0000
(22:26 -0400)
Kernel/tty.c
patch
|
blob
|
history
diff --git
a/Kernel/tty.c
b/Kernel/tty.c
index
3762da9
..
c380a21
100644
(file)
--- 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';