On BSD, switching off ICANON does not disable LNEXT (^V) processing.

We explicitly need to unset IEXTEN.  ok matthieu@
This commit is contained in:
naddy 2016-01-13 21:17:02 +00:00
parent d6d2052305
commit bb06250523

View File

@ -256,7 +256,7 @@ setRawTermios(void)
rc = tcgetattr(0, &tio);
if (rc < 0)
return rc;
tio.c_lflag &= (unsigned) ~(ECHO | ICANON | ISIG);
tio.c_lflag &= (unsigned) ~(ECHO | ICANON | IEXTEN | ISIG);
tio.c_iflag &= (unsigned) ~(ICRNL | IXOFF | IXON | ISTRIP);
#ifdef ONLCR
tio.c_oflag &= (unsigned) ~ONLCR;