[PATCH 2/6] Cygwin: pty: Add workaround for handling of backspace when pcon enabled

Takashi Yano takashi.yano@nifty.ne.jp
Thu Mar 19 10:54:58 GMT 2026


On Wed, 18 Mar 2026 23:46:00 +0900
Takashi Yano wrote:
> On Wed, 18 Mar 2026 22:01:14 +0900
> Takashi Yano wrote:
> > On Wed, 18 Mar 2026 20:20:32 +0900
> > Takashi Yano wrote:
> > > Hi Johannes,
> > > 
> > > On Tue, 17 Mar 2026 16:28:28 +0100 (CET)
> > > Johannes Schindelin wrote:
> > > > This cannot be correct, and I am rather convinced that the idea behind the
> > > > patch (interleaving `WriteFile()` calls to the pipe with sending raw
> > > > keyboard events via `WriteConsoleInput()` to a _different_ handle) will
> > > > _never_ be robust enough.
> > > 
> > > Then, only the thing we can do till fixing the issue upstream, is
> > > writing all chars using WriteConsoleInput() instead of WriteFile()...
> > > 
> > > What do you think?
> > 
> > On second thought, replacing Ctrl-H with '\x7f' might be enough.
> > Please see PATCH 2/6 v2.
> 
> Sorry, something has been broken with the patch set:
> PATCH 1/6
> PATCH 2/6 v2
> PATCH 3/6
> PATCH 4/6 v2
> PATCH 5/6
> PATCH 6/6 v2
> 
> Please wait a while.

Since the version numbers were getting confusing, I'll send a unified
v3 of the updated patch set. Hopefully, this should fix the issues.

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


More information about the Cygwin-patches mailing list