projects
/
profile
/
ivi
/
can-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9422de
)
slcanpty: fix pty terminal flags for correct NL/CR handling
author
Oliver Hartkopp
<socketcan@hartkopp.net>
Tue, 11 Jun 2013 20:11:19 +0000
(22:11 +0200)
committer
Oliver Hartkopp
<socketcan@hartkopp.net>
Tue, 11 Jun 2013 20:11:19 +0000
(22:11 +0200)
Signed-off-by: Janusz Uzycki <j.uzycki@elproma.com.pl>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
slcanpty.c
patch
|
blob
|
history
diff --git
a/slcanpty.c
b/slcanpty.c
index
dece1e1
..
8a11473
100644
(file)
--- a/
slcanpty.c
+++ b/
slcanpty.c
@@
-430,7
+430,9
@@
int main(int argc, char **argv)
/* disable local echo which would cause double frames */
topts.c_lflag &= ~(ICANON | ECHO | ECHOE | ECHOK |
- ECHONL | ECHOPRT | ECHOKE | ICRNL);
+ ECHONL | ECHOPRT | ECHOKE);
+ topts.c_iflag &= ~(ICRNL);
+ topts.c_iflag |= INLCR;
tcsetattr(p, TCSANOW, &topts);
/* Support for the Unix 98 pseudo-terminal interface /dev/ptmx /dev/pts/N */