From 1bade6d79634d67748a55ed9e0b6027f5993b4a6 Mon Sep 17 00:00:00 2001 From: curt Date: Sat, 26 Aug 2006 14:02:17 +0000 Subject: [PATCH] Frederic Bouvier: Make line feed behavior consistent between linux/windows. --- simgear/serial/serial.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/simgear/serial/serial.cxx b/simgear/serial/serial.cxx index bcb1897c..9e6c6163 100644 --- a/simgear/serial/serial.cxx +++ b/simgear/serial/serial.cxx @@ -122,6 +122,9 @@ bool SGSerialPort::open_port(const string& device) { // cout << "config.c_iflag = " << config.c_iflag << endl; + // disable LF expanded to CR-LF + config.c_oflag &= ~(ONLCR); + // disable software flow control config.c_iflag &= ~(IXON | IXOFF | IXANY); -- 2.39.5