[PATCH v2] Cygwin: pty: Omit win32-input-mode sequence from pseudo console

Takashi Yano takashi.yano@nifty.ne.jp
Tue Mar 3 11:08:02 GMT 2026


On Mon, 2 Mar 2026 13:46:20 +0100 (CET)
Johannes Schindelin wrote:
> Hi Takashi,
> 
> On Sat, 28 Feb 2026, Takashi Yano wrote:
> 
> > In Windows 11, pseudo console uses CSI?9001h which lets the terminal
> > enter win32-input-mode in console. As a result, two problems happen.
> > 
> > 1) If non-cygwin app is running in script command on the console,
> >    Ctrl-C terminates not only the non-cygwin app, but also script
> >    command without cleanup for the pseudo console.
> > 
> > 2) Some remnants sequences from win32-input-mode occasionally
> >    appears on the shell in script command on the console.
> > 
> > This patch fixes them by omit CSI?9001h to prevent the terminal
> > from entering win32-input-mode.
> > 
> > Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
> > Suggested-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
> 
> Nice! This patch looks good to me!

Thanks! Pushed.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>


More information about the Cygwin-patches mailing list