]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: console: Fix setting/unsetting xterm mode for input.
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Mon, 2 Mar 2020 01:12:55 +0000 (10:12 +0900)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 2 Mar 2020 18:46:40 +0000 (19:46 +0100)
commit10d8c2782d79dd5744027e93831dd77aeab452fc
treee1fec9f1e805d16f982061fc5aca42243ea2a7be
parent7f5051d76662838103666492a33505e0801c1ee7
Cygwin: console: Fix setting/unsetting xterm mode for input.

- This patch fixes the issue that xterm compatible mode for input
  is not correctly set/unset in some situation such as:
   1) cat is stopped by ctrl-c.
   2) The window size is changed in less.
  In case 1), request_xterm_mode_input(true) is called in read(),
  however, cat is stopped without request_xterm_mode_input(false).
  In case 2), less uses longjmp in signal handler, therefore,
  corresponding request_xterm_mode_input(false) is not called if
  the SIGWINCH signal is sent within read(). With this patch,
  InterlockedExchange() is used instead of InterlockedIncrement/
  Decrement().
winsup/cygwin/fhandler_console.cc
This page took 0.029991 seconds and 5 git commands to generate.