2012-05-03 17:40:28 +02:00
|
|
|
[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>
|
2014-11-23 17:08:17 +01:00
|
|
|
diff --git a/posix.c b/posix.c
|
|
|
|
index 97edd9f052b1..352c4712b689 100644
|
|
|
|
--- a/posix.c
|
|
|
|
+++ b/posix.c
|
|
|
|
@@ -53,17 +53,17 @@ void ttopen(void)
|
2012-05-03 17:40:28 +02:00
|
|
|
/*
|
|
|
|
* 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 */
|
2014-11-23 17:08:17 +01:00
|
|
|
ntermios.c_oflag &=
|
|
|
|
~(OPOST | ONLCR | OLCUC | OCRNL | ONOCR | ONLRET);
|
2012-05-03 17:40:28 +02:00
|
|
|
|
|
|
|
/* No signal handling, no echo etc */
|
|
|
|
ntermios.c_lflag &= ~(ISIG | ICANON | XCASE | ECHO | ECHOE | ECHOK
|
2014-11-23 17:08:17 +01:00
|
|
|
| ECHONL | NOFLSH | TOSTOP | ECHOCTL |
|