Commit a2f98a2a authored by Mart Lubbers's avatar Mart Lubbers

Merge branch 'macOS_termios_fix' into 'master'

Fixing termios flags on macOS

See merge request mlubbers/CleanSerial!1
parents 3820fba8 67412f13
...@@ -151,6 +151,9 @@ void ttyopen(CleanString fn, int baudrate, int bytesize, int parity, ...@@ -151,6 +151,9 @@ void ttyopen(CleanString fn, int baudrate, int bytesize, int parity,
tio.c_lflag &= ~(ECHO | ECHONL | ICANON | IEXTEN | ISIG); tio.c_lflag &= ~(ECHO | ECHONL | ICANON | IEXTEN | ISIG);
// tio.c_lflag |= ICANON; // tio.c_lflag |= ICANON;
#ifdef __APPLE__
tio.c_cflag |= CLOCAL;
#endif
tio.c_cc[VMIN]=5; tio.c_cc[VMIN]=5;
tio.c_cc[VTIME]=0; tio.c_cc[VTIME]=0;
tcsetattr(*fd, TCSANOW, &tio); tcsetattr(*fd, TCSANOW, &tio);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment