01-clear-ixon-termios-flag.patch 952 B

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