Frederic Bouvier:

Make line feed behavior consistent between linux/windows.
This commit is contained in:
curt
2006-08-26 14:02:17 +00:00
parent 629a4a950e
commit 1bade6d796

View 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);