X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fserial.cpp;h=26ef92ed9015ae4f04aa1f96670a38f27dfcacfc;hp=2ed11ae9fddd900b4ab695a2acc05770deaf5e18;hb=2dd1d157ddccb7a48351d58db05982428b7b3a6d;hpb=c750a22da0df0b54af78374fd66ad1a055327e34 diff --git a/source/io/serial.cpp b/source/io/serial.cpp index 2ed11ae..26ef92e 100644 --- a/source/io/serial.cpp +++ b/source/io/serial.cpp @@ -181,8 +181,11 @@ Serial::Serial(const string &descr): termios t; tcgetattr(*handle, &t); - t.c_lflag &= ~(ECHO|ICANON); - t.c_oflag &= ~OPOST; + t.c_iflag &= ~(ISTRIP|INLCR|IGNCR|ICRNL|IXON); + t.c_lflag &= ~(ECHO|ICANON|ISIG|IEXTEN); + t.c_oflag &= ~(OPOST|OCRNL|ONOCR|ONLRET); + t.c_cc[VMIN] = 1; + t.c_cc[VTIME] = 0; tcsetattr(*handle, TCSADRAIN, &t); #endif