summaryrefslogtreecommitdiff
path: root/sysutils/screen-legacy/files/patch-tty.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/screen-legacy/files/patch-tty.sh')
-rw-r--r--sysutils/screen-legacy/files/patch-tty.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/screen-legacy/files/patch-tty.sh b/sysutils/screen-legacy/files/patch-tty.sh
new file mode 100644
index 000000000000..1b40f3c939fd
--- /dev/null
+++ b/sysutils/screen-legacy/files/patch-tty.sh
@@ -0,0 +1,22 @@
+--- tty.sh
++++ tty.sh
+@@ -76,7 +76,7 @@
+ #endif
+
+ #include "config.h"
+-#ifdef SVR4
++#if defined(SVR4) && !defined(__FreeBSD__)
+ #include <sys/stropts.h> /* for I_POP */
+ #endif
+
+@@ -562,7 +562,9 @@
+ XIF{VLNEXT} np->tio.c_cc[VLNEXT] = VDISABLE;
+ XIF{VSTATUS} np->tio.c_cc[VSTATUS] = VDISABLE;
+ XIF{VSUSP} np->tio.c_cc[VSUSP] = VDISABLE;
+-XIF{VERASE} np->tio.c_cc[VERASE] = VDISABLE;
++ /* Set VERASE to DEL, rather than VDISABLE, to avoid libvte
++ "autodetect" issues. */
++XIF{VERASE} np->tio.c_cc[VERASE] = 0x7f;
+ XIF{VKILL} np->tio.c_cc[VKILL] = VDISABLE;
+ # ifdef HPUX_LTCHARS_HACK
+ np->m_ltchars.t_suspc = VDISABLE;