]> git.mxchange.org Git - simgear.git/commitdiff
Frederic Bouvier:
authorcurt <curt>
Sat, 26 Aug 2006 14:02:17 +0000 (14:02 +0000)
committercurt <curt>
Sat, 26 Aug 2006 14:02:17 +0000 (14:02 +0000)
Make line feed behavior consistent between linux/windows.

simgear/serial/serial.cxx

index bcb1897c0c38d47214e7dc1a93a553be3af533cd..9e6c6163623501c79fdc11922aaa7b01169cefc3 100644 (file)
@@ -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);