public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Orgad Shaneh <orgads@gmail.com>
Cc: Takashi Yano <takashi.yano@nifty.ne.jp>, cygwin@cygwin.com
Subject: Re: VS Code is missing a few characters when running launch task in Git Bash
Date: Fri, 1 Jul 2022 16:14:33 +0200 (CEST)	[thread overview]
Message-ID: <305055p9-205p-s1q3-698q-srp8n219p0rn@tzk.qr> (raw)
In-Reply-To: <CAGHpTBK5t-V2J++ih5wmCRdO7dG4FVzDTp+wfVfwce8RVHGfew@mail.gmail.com>

Hi Orgad,

On Fri, 1 Jul 2022, Orgad Shaneh wrote:

> On Fri, Jul 1, 2022 at 1:02 AM Orgad Shaneh <orgads@gmail.com> wrote:
> >
> > On Sun, May 29, 2022 at 9:00 AM Orgad Shaneh <orgads@gmail.com> wrote:
> > >
> > > On Fri, May 27, 2022 at 3:43 PM Takashi Yano <takashi.yano@nifty.ne.jp> wrote:
> > > >
> > > > On Fri, 27 May 2022 15:22:23 +0300
> > > > Orgad Shaneh wrote:
> > > > > On Fri, May 27, 2022 at 11:06 AM Orgad Shaneh <orgads@gmail.com> wrote:
> > > > > >
> > > > > > On Fri, May 27, 2022 at 10:59 AM Adam Dinwoodie <adam@dinwoodie.org> wrote:
> > > > > > >
> > > > > > > On Fri, May 27, 2022 at 10:15:18AM +0300, Orgad Shaneh wrote:
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > I'm using Git Bash as the default terminal in VS Code. Using Git for
> > > > > > > > Windows 2.36.1 with the latest runtime, based on cygwin 3.5.0.
> > > >
> > > > Do you mean cygwin 3.3.5?
> > >
> > > Yes, of course.
> > >
> > > > Two questions:
> > > > 1) Is the terminal in VS Code runs on console or pty? (What does
> > > >   'tty' command says?)
> > >
> > > /dev/cons0
> > >
> > > I guess this means console?
> > >
> > > > 2) If the terminal runs on pty, did you try both with and without
> > > >   'disable_pcon'?
> > >
> > > It's console.
> >
> > I might have found a way to reproduce on Cygwin (3.3.5). I can
> > reproduce this on both Windows Terminal and the native console (Just
> > running Cygwin.bat).
> >
> > Open Cygwin terminal. Paste the following text (can either be with
> > Shift-Ins in Windows Terminal, or right-click on native console):
> >
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> >
> > The output looks like this. Notice that after 1024 characters, it
> > starts to garble:
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklwxyz abcdepqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz xyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz abcdefgrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
> > abcdefghijklmnopqrstuvwmnopqrstuvfghijklwxyz abcde
> >
> > Thanks!
> > - Orgad
>
> Notice the entire input is a single line. Replace newlines with spaces.

Indeed, I can reproduce very easily with up to date Cygwin in Windows
Terminal (but for me, it does not reproduce in ConHost, maybe because of
my settings?). Here is what I did:

	$ a=0123456789abcdef\  && a=$a$a$a$a$a$a$a$a &&
	a=$a$a$a$a$a$a$a$a && echo $a$a$a$a$a$a$a$a$a | clip

And then I hit Shift+Insert.

Me, too, I noticed that the first 1024+ characters seem fine, but then the
garbling starts.

Ciao,
Dscho

  reply	other threads:[~2022-07-01 14:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-27  7:15 Orgad Shaneh
2022-05-27  7:59 ` Adam Dinwoodie
2022-05-27  8:06   ` Orgad Shaneh
2022-05-27 12:22     ` Orgad Shaneh
2022-05-27 12:43       ` Takashi Yano
2022-05-29  6:00         ` Orgad Shaneh
2022-06-30 22:02           ` Orgad Shaneh
2022-06-30 22:08             ` Orgad Shaneh
2022-07-01 14:14               ` Johannes Schindelin [this message]
2022-07-01 23:34             ` Takashi Yano
2022-07-02 23:17               ` Takashi Yano
2022-07-03 13:02                 ` Orgad Shaneh
2022-07-03 23:40                   ` Takashi Yano
2022-07-04  5:57                     ` Orgad Shaneh
2022-07-05  3:17                       ` Takashi Yano
2022-07-05 11:18                         ` Orgad Shaneh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=305055p9-205p-s1q3-698q-srp8n219p0rn@tzk.qr \
    --to=johannes.schindelin@gmx.de \
    --cc=cygwin@cygwin.com \
    --cc=orgads@gmail.com \
    --cc=takashi.yano@nifty.ne.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).