[PATCH] Cygwin: console: Add workaround for broken CSI3J in Win10 1809.

2019-12-31 Thread Takashi Yano
- In Win10 1809, the cursor position sometimes goes out of screen by clear command in console. This seems to be caused by escape sequence CSI3J (ESC[3J). This happens only for 1809. This patch is a workaround for the issue. --- winsup/cygwin/fhandler_console.cc | 12 +

[PATCH] Cygwin: console: Disable xterm mode for non cygwin process only.

2019-12-31 Thread Takashi Yano
- Special function keys such as arrow keys or function keys do not work in ConEmu with cygwin-connector after commit 6a06c6bc8f8492ea09aa3ae180fe94e4ac265611. This patch fixes the issue. --- winsup/cygwin/fhandler_console.cc | 8 winsup/cygwin/spawn.cc| 29

[PATCH] Cygwin: pty: Revise the code for setting code page of pseudo console.

2019-12-31 Thread Takashi Yano
- Fix the problem which overrides the code page setting, reported in https://www.cygwin.com/ml/cygwin/2019-12/msg00292.html. --- winsup/cygwin/fhandler_tty.cc | 52 +-- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/winsup/cygwin/fhandler_tty.cc

[PATCH] Cygwin: pty: Remove destructor for fhandler_pty_master class.

2019-12-31 Thread Takashi Yano
- The destructor for fhandler_pty_master class does not seem to be necessary anymore. Therefore, it has been removed. --- winsup/cygwin/fhandler.h | 1 - winsup/cygwin/fhandler_tty.cc | 9 - 2 files changed, 10 deletions(-) diff --git a/winsup/cygwin/fhandler.h

[PATCH] Cygwin: pty: Fix the issue regarding open and close multiple PTYs.

2019-12-31 Thread Takashi Yano
- If two PTYs are opened in the same process and the first one is closed, the helper process for the first PTY remains running. This patch fixes the issue. --- winsup/cygwin/fhandler_tty.cc | 8 winsup/utils/cygwin-console-helper.cc | 15 ++- 2 files changed, 18

[PATCH] Cygwin: pty: Add missing CloseHandle() calls.

2019-12-31 Thread Takashi Yano
--- winsup/cygwin/fhandler_tty.cc | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 65b12fd6c..23156f977 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@