1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

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

We explicitly need to unset IEXTEN.
This commit is contained in:
Christian Weisgerber 2016-01-15 20:12:55 +00:00
parent 6656cb7bf5
commit 4c684c5386
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=406190
2 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= luit
PORTVERSION= 1.1.1
PORTREVISION= 1
CATEGORIES= x11
MAINTAINER= x11@FreeBSD.org

View File

@ -0,0 +1,11 @@
--- 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;