[PATCH 2/2] Cygwin: pty: Discard "OSC Ps; ? BEL/ST" in pseudo console output.
Takashi Yano
takashi.yano@nifty.ne.jp
Mon Nov 23 11:02:18 GMT 2020
On Mon, 23 Nov 2020 09:58:59 +0100
Corinna Vinschen wrote:
> Hi Takashi,
>
> just a small style nit:
>
> On Nov 23 14:28, Takashi Yano via Cygwin-patches wrote:
> > - If vim is executed in WSL in mintty, some garbage string caused
> > by "OSC Ps;? BEL/ST" will be shown in some situations. This patch
> > fixes the issue by removing "OSC Ps;? BEL/ST" from pseudo console
> > output.
> > ---
> > winsup/cygwin/fhandler_tty.cc | 30 ++++++++++++++++++++++++++++++
> > 1 file changed, 30 insertions(+)
> >
> > diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
> > index 911945675..38285c7f4 100644
> > --- a/winsup/cygwin/fhandler_tty.cc
> > +++ b/winsup/cygwin/fhandler_tty.cc
> > @@ -2069,6 +2069,36 @@ fhandler_pty_master::pty_master_fwd_thread ()
> > else
> > state = 0;
> >
> > + /* Remove OSC Ps ; ? BEL/ST */
> > + for (DWORD i=0; i<rlen; i++)
> ^^^ ^^^^^^
> spaces
I will submit v2 patch. Thanks.
--
Takashi Yano <takashi.yano@nifty.ne.jp>
More information about the Cygwin-patches
mailing list