From: curt Date: Sat, 26 Aug 2006 14:02:17 +0000 (+0000) Subject: Frederic Bouvier: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1bade6d79634d67748a55ed9e0b6027f5993b4a6;p=simgear.git Frederic Bouvier: Make line feed behavior consistent between linux/windows. --- 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);