1 [PATCH] clear ixon termios flag on initialization
3 Otherwise ctrl-S/Q gets intercepted by the tty layer instead of
6 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
7 diff --git a/posix.c b/posix.c
8 index 97edd9f052b1..352c4712b689 100644
11 @@ -53,17 +53,17 @@ void ttopen(void)
13 * base new settings on old ones - don't change things
18 /* raw CR/NL etc input handling, but keep ISTRIP if we're on a 7-bit line */
19 ntermios.c_iflag &= ~(IGNBRK | BRKINT | IGNPAR | PARMRK
20 - | INPCK | INLCR | IGNCR | ICRNL);
21 + | INPCK | INLCR | IGNCR | ICRNL | IXON);
23 /* raw CR/NR etc output handling */
25 ~(OPOST | ONLCR | OLCUC | OCRNL | ONOCR | ONLRET);
27 /* No signal handling, no echo etc */
28 ntermios.c_lflag &= ~(ISIG | ICANON | XCASE | ECHO | ECHOE | ECHOK
29 | ECHONL | NOFLSH | TOSTOP | ECHOCTL |