1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/x11/luit/files/patch-sys.c
Christian Weisgerber 4c684c5386 On BSD, switching off ICANON does not disable LNEXT (^V) processing.
We explicitly need to unset IEXTEN.
2016-01-15 20:12:55 +00:00

12 lines
388 B
C

--- sys.c.orig 2012-03-23 04:23:07 UTC
+++ sys.c
@@ -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;