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: In-Reply-To: From: Andy Koppe Date: Fri, 18 Mar 2022 21:55:56 +0000 Message-ID: Subject: Re: xterm (or x11) pastes are highlighted To: Cygwin Tech List 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 List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit 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