Hi Marius, ... > - if (! > - (termio.c_lflag > - && (ISIG | ICANON | XCASE | ECHO | ECHOE | NOFLSH))) { > + if (termio.c_lflag != (ISIG | ICANON | XCASE | ECHO | ECHOE > + | NOFLSH)) { Shouldn't this be using & ~() ? if ((termio.c_lflag & ~(ISIG | ICANON | XCASE | ECHO | ECHOE | NOFLSH))) { Also the other two. Kind regards, Petr