summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-05-03 17:40:28 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2012-05-03 20:34:48 +0200
commit15744b7e15523506f52d36cac556626df9eaa204 (patch)
treee68b5a9de570d00d80c5884ef6351d078b32d315 /package
parentffe526d1063be89f68a78170a05665f577758318 (diff)
uemacs: clear ixon termios flag at initialization
Closes #5144 Patch by Grant Edwards <grant.b.edwards@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/uemacs/uemacs-4.0.15-lt.03.ixon.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/uemacs/uemacs-4.0.15-lt.03.ixon.patch b/package/uemacs/uemacs-4.0.15-lt.03.ixon.patch
new file mode 100644
index 000000000..d0aaa7979
--- /dev/null
+++ b/package/uemacs/uemacs-4.0.15-lt.03.ixon.patch
@@ -0,0 +1,28 @@
+[PATCH] clear ixon termios flag on initialization
+
+Otherwise ctrl-S/Q gets intercepted by the tty layer instead of
+handled by uemacs.
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+diff -U8 em-4.0.15-lt-orig/posix.c em-4.0.15-lt/posix.c
+--- em-4.0.15-lt-orig/posix.c 1999-05-16 02:06:19.000000000 -0500
++++ em-4.0.15-lt/posix.c 2012-04-25 16:14:25.000000000 -0500
+@@ -45,17 +45,17 @@
+ /*
+ * base new settings on old ones - don't change things
+ * we don't know about
+ */
+ ntermios = otermios;
+
+ /* raw CR/NL etc input handling, but keep ISTRIP if we're on a 7-bit line */
+ ntermios.c_iflag &= ~(IGNBRK | BRKINT | IGNPAR | PARMRK
+- | INPCK | INLCR | IGNCR | ICRNL);
++ | INPCK | INLCR | IGNCR | ICRNL | IXON);
+
+ /* raw CR/NR etc output handling */
+ ntermios.c_oflag &= ~(OPOST | ONLCR | OLCUC | OCRNL | ONOCR | ONLRET);
+
+ /* No signal handling, no echo etc */
+ ntermios.c_lflag &= ~(ISIG | ICANON | XCASE | ECHO | ECHOE | ECHOK
+ | ECHONL | NOFLSH | TOSTOP | ECHOCTL | ECHOPRT
+ | ECHOKE | FLUSHO | PENDIN | IEXTEN);