[PATCH 1/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.

2019-09-06 Thread Takashi Yano
- When the I/O pipe is switched to the pseudo console side, the behaviour of Ctrl-C is unstable. This rarely happens, however, for example, shell sometimes crashes by Ctrl-C in that situation. This patch fixes that issue. --- winsup/cygwin/fhandler.h | 4 +- winsup/cygwin/fhandler_tty

[PATCH 0/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.

2019-09-06 Thread Takashi Yano
- When the I/O pipe is switched to the pseudo console side, the behaviour of Ctrl-C is unstable. This rarely happens, however, for example, shell sometimes crashes by Ctrl-C in that situation. This patch fixes that issue. Takashi Yano (1): Cygwin: pty: Fix the behaviour of Ctrl-C in the ps

[PATCH 1/1] Cygwin: pty: Make SetConsoleCursorPosition() to be hooked.

2019-09-06 Thread Takashi Yano
- Win32 API SetConsoleCursorPosition() injects ANSI escape sequence to pseudo console. Therefore, it should be added to the API list to be hooked. --- winsup/cygwin/fhandler_tty.cc | 9 + 1 file changed, 9 insertions(+) diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandl

[PATCH 0/1] Cygwin: pty: Make SetConsoleCursorPosition() to be hooked.

2019-09-06 Thread Takashi Yano
- Win32 API SetConsoleCursorPosition() injects ANSI escape sequence to pseudo console. Therefore, it should be added to the API list to be hooked. Takashi Yano (1): Cygwin: pty: Make SetConsoleCursorPosition() to be hooked. winsup/cygwin/fhandler_tty.cc | 9 + 1 file changed, 9 ins

Re: [PATCH 0/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.

2019-09-06 Thread Takashi Yano
This has small problem. Please apply v2. On Fri, 6 Sep 2019 21:48:15 +0900 Takashi Yano wrote: > - When the I/O pipe is switched to the pseudo console side, the > behaviour of Ctrl-C is unstable. This rarely happens, however, > for example, shell sometimes crashes by Ctrl-C in that situation

[PATCH v2 1/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.

2019-09-06 Thread Takashi Yano
- When the I/O pipe is switched to the pseudo console side, the behaviour of Ctrl-C is unstable. This rarely happens, however, for example, shell sometimes crashes by Ctrl-C in that situation. This patch fixes that issue. --- winsup/cygwin/fhandler.h | 4 +- winsup/cygwin/fhandler_tty

[PATCH v2 0/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.

2019-09-06 Thread Takashi Yano
- When the I/O pipe is switched to the pseudo console side, the behaviour of Ctrl-C is unstable. This rarely happens, however, for example, shell sometimes crashes by Ctrl-C in that situation. This patch fixes that issue. v2: Remove the code which accidentally clears ENABLE_ECHO_INPUT flag.

[PATCH v3 0/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.

2019-09-06 Thread Takashi Yano
- When the I/O pipe is switched to the pseudo console side, the behaviour of Ctrl-C is unstable. This rarely happens, however, for example, shell sometimes crashes by Ctrl-C in that situation. This patch fixes that issue. v3: Fix mistake in v2. v2: Remove the code which accidentally clears

[PATCH v3 1/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.

2019-09-06 Thread Takashi Yano
- When the I/O pipe is switched to the pseudo console side, the behaviour of Ctrl-C is unstable. This rarely happens, however, for example, shell sometimes crashes by Ctrl-C in that situation. This patch fixes that issue. --- winsup/cygwin/fhandler.h | 4 +- winsup/cygwin/fhandler_tty

Re: [PATCH v2 0/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.

2019-09-06 Thread Takashi Yano
Sorry again. Please apply v3. On Fri, 6 Sep 2019 23:42:38 +0900 Takashi Yano wrote: > - When the I/O pipe is switched to the pseudo console side, the > behaviour of Ctrl-C is unstable. This rarely happens, however, > for example, shell sometimes crashes by Ctrl-C in that situation. > This

Re: [PATCH 0/1] Cygwin: pty: Make SetConsoleCursorPosition() to be hooked.

2019-09-06 Thread Ken Brown
On 9/6/2019 9:01 AM, Takashi Yano wrote: > - Win32 API SetConsoleCursorPosition() injects ANSI escape sequence >to pseudo console. Therefore, it should be added to the API list >to be hooked. > > Takashi Yano (1): >Cygwin: pty: Make SetConsoleCursorPosition() to be hooked. > > winsu

Re: [PATCH v3 0/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.

2019-09-06 Thread Ken Brown
Hi Takashi, On 9/6/2019 10:51 AM, Takashi Yano wrote: > - When the I/O pipe is switched to the pseudo console side, the >behaviour of Ctrl-C is unstable. This rarely happens, however, >for example, shell sometimes crashes by Ctrl-C in that situation. >This patch fixes that issue. > >

Re: [PATCH v3 0/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.

2019-09-06 Thread Takashi Yano
Hi Ken, I appreciate checking the patch. On Fri, 6 Sep 2019 17:59:02 + Ken Brown wrote: > I had several problems after applying this patch. > > 1. I noticed some display glitches when building cygwin (with -j13 if that's > relevant). For example, there were some unexpected blank lines and

[PATCH v4 0/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.

2019-09-06 Thread Takashi Yano
- When the I/O pipe is switched to the pseudo console side, the behaviour of Ctrl-C is unstable. This rarely happens, however, for example, shell sometimes crashes by Ctrl-C in that situation. This patch fixes that issue. v4: Fix the problem 1 and 2 reported in https://cygwin.com/ml/cygwin-p

[PATCH v4 1/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.

2019-09-06 Thread Takashi Yano
- When the I/O pipe is switched to the pseudo console side, the behaviour of Ctrl-C is unstable. This rarely happens, however, for example, shell sometimes crashes by Ctrl-C in that situation. This patch fixes that issue. --- winsup/cygwin/fhandler.h | 4 winsup/cygwin/fhandler_tt

Re: [PATCH v3 0/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.

2019-09-06 Thread Takashi Yano
On Sat, 7 Sep 2019 12:20:15 +0900 Takashi Yano wrote: > On Fri, 6 Sep 2019 17:59:02 + > Ken Brown wrote: > > 3. I used ssh from my normal account to log into an administrator account. > > I > > ran a script that produced a lot of output and piped it to less. I pressed > > 'q' > > after th