www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/03/18/17:57:03

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EEF583889811
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:content-transfer-encoding;
bh=rZ10hJ6PnMNXhEhSR/NkYDsi0+fyPbIG8kpOz0YLr2A=;
b=lY3tO+SxiFkgk2mEzdU/wr1/EhxY4s9v40An79dgwN9gD+TpEwZRrSMewsE5Xce6Tt
u65mSLo9deRHEIwme1xRBCPhTnjQ4JJJoTUFK9xIixYUOt2m04SVl3u0dOA8BmDoHYNx
+BU8/0/2oskOZeVAt/UPEj63uusnkr2ebkaGhvryBdnGKyjP2ETc+BXjzgp5nu1q0VDe
cduhDptMztgGG3tIBsRRHqOq4iH8TGGlDTL6nkwLn8E403il4QYCbeKw0fr7pgcOqZSM
LP1ixscni11ykkgggzOOlL4aqp8ZuM2Gmau7ZhSwJ9ELjDkr+VuWNG1GRpp4MoGrEGUl
hEhg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-transfer-encoding;
bh=rZ10hJ6PnMNXhEhSR/NkYDsi0+fyPbIG8kpOz0YLr2A=;
b=iW9z66sDHKTAmMtoWjCb0L6WzP8ZmUtuz6fA+gCKFPmtjhUARG3wZzePk0wKe8Iw4v
6IO05AwawjME2LmYUbrzKXdP1QnrZP/njzNfVgp2OPRt7gH6kIs3iTY07hpy/hU2cJx5
4YFalWSn02fYSGaHXLaa2QW6lyYGwCc2H7aFoLE182obebMRULUWiRtP7nzS5DJ6lnNP
jiIHV9WONeZq58dggUHH6JYhmEfil+oKMwZ/m6UeQb8t18nlhCqscgfUxVTq5wfFfY53
GehFXPj3L0zzS6NrePGdzF4O2Tx3Fkxwb7EUIP8oisr/Y5RAuvg4BzytPajMAijWrz/l
GtJw==
X-Gm-Message-State: AOAM533wOaao9MMOZ7VCD7nAd7UmezJTGe9asi5UCaMgs+MzKVdB8wVP
SR9mnM9kRhEqVSJCkgOYJ++oZFgId3jOnnFzl988qhGG
X-Google-Smtp-Source: ABdhPJzVWLFwAUFqnF0LOfilF/v7fmlj9bASbzY4wjwvmGFL9wjoV/0LdB6nodKg6ujx7S8uNRwOxJKpGOO+naRE83U=
X-Received: by 2002:a05:6808:1144:b0:2ec:b290:80e7 with SMTP id
u4-20020a056808114400b002ecb29080e7mr5193879oiu.26.1647640567200; Fri, 18 Mar
2022 14:56:07 -0700 (PDT)
MIME-Version: 1.0
References: <eabc59f2-ab88-f57c-1fcc-26cd17cd1f0b AT web DOT de>
<c66e9392-1413-8e6d-cb3e-2df0d4c442a6 AT gmail DOT com>
<CAHWeT-YP4PVkWwoKR-JUtOheK9yTZ8O7H_kVtRk1q9O5dcZMXQ AT mail DOT gmail DOT com>
<d892ee25-497d-ed13-48e9-f8eb44e88534 AT web DOT de>
In-Reply-To: <d892ee25-497d-ed13-48e9-f8eb44e88534@web.de>
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
Date: Fri, 18 Mar 2022 21:55:56 +0000
Message-ID: <CAHWeT-bhr7O5bx4Y3LFHj0Axw_PX9gUns3QvCNqbLk-qm03dKg@mail.gmail.com>
Subject: Re: xterm (or x11) pastes are highlighted
To: Cygwin Tech List <cygwin AT cygwin DOT com>
X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 22ILv3Lf011374

On Fri, 18 Mar 2022 at 07:23, n952162 wrote:
>
> Am 18.03.2022 um 00:22 schrieb Andy Koppe:
> > On Thu, 17 Mar 2022 at 20:32, René Berber wrote:
> >> On 3/17/2022 1:03 PM, n952162 wrote:
> >>
> >>> Does anyone know how I can disable the highlighting that occurs when I
> >>> copy and paste in xterm?
> >>>
> >>> Escape sequences are added to achieve that and sometimes they're not
> >>> being properly interpreted.
> >>>
> >>> Why would I want that anyway?
> >> The same thing happens to (plain, non X windows) mintty.
> >>
> >> It started recently, maybe a couple of weeks.  No idea how to fix it,
> >> haven't really tried.
> >>
> >> Very annoying.
> > It came in with the readline 8.1 update in September last year, which
> > enabled "bracketed paste mode" by default. (I think zsh has had it
> > enabled for a few years.)
> >
> > As n952162 said, it tells the terminal to enclose pasted text in
> > escape sequences.
> >
> > There are several points to this:
> > - It stops accidental multi-line pastes from getting immediately
> > executed line by line.
> > - It makes it easier to undo a paste, as you can cut it out in one go
> > rather than deleting manually.
> > - Pasting can be faster, as the application can process the paste in
> > one chunk rather than treating it as char-by-char keyboard input.
> >
> > But yep, sometimes it can go wonky, in particular when the bracketing
> > mode for some reason is left on for an application that doesn't expect
> > it.
> >
> > For readline, it can be disabled in ~/.inputrc:
> >
> > set enable-bracketed-paste off
> >
> > Regards,
> > Andy
>
>
> Andy, perhaps you can speak to another, almost related issue, which I
> posted on 10th of March:
>
>     /xterm*VT100.Translations only when mouse is over the window with focus/
>
> A copy is attached here.  This is only a Cygwin issue, as far as I know.
>
> Perhaps you can recommend someone who I could turn to, to get a fix, an
> explanation, a workaround, or help to get started doing a fix?

I'm afraid I can't help with that, but hopefully the Cygwin/X
maintainer has seen your report. It might be interesting whether it
happens in the different XWin modes (single window, rootless,
multiwindow), or on a Linux host.

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019