python-pyasn: bump to version 1.6.0b1
[buildroot-gz.git] / package / uemacs / 01-clear-ixon-termios-flag.patch
blobdde76420d4d0251126a28cd6884ffbaaf665ae81
1 [PATCH] clear ixon termios flag on initialization
3 Otherwise ctrl-S/Q gets intercepted by the tty layer instead of
4 handled by uemacs.
6 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
7 diff --git a/posix.c b/posix.c
8 index 97edd9f052b1..352c4712b689 100644
9 --- a/posix.c
10 +++ b/posix.c
11 @@ -53,17 +53,17 @@ void ttopen(void)
13 * base new settings on old ones - don't change things
14 * we don't know about
16 ntermios = otermios;
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 */
24 ntermios.c_oflag &=
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 |