delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/03/18/02:07:19

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 07CE9388451F
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=web.de
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=web.de
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
s=dbaedf251592; t=1647583620;
bh=OHjAKhMXhLhYTj2pI6+f8SU+dYpKnXKvK41qs1cfLk4=;
h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To;
b=eHL+xklIxPpd8MbEHqCgG9/T/cFgIoDr+WQhzil4vWRLFYWXL3OK5aU0RpxTmfhZy
ao7d4AoOUTVQieaDG81kI5cUDky4g5n5LFs8ENCsV4fJqPkJNt6zdyrkodGyzHDrwq
iLkUugtHHx7B/7m7jCGEkxMb9Y41JB/YqdaeEfH4=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Message-ID: <d9cb31dc-96a2-e2b2-5488-43a04ec4f774@web.de>
Date: Fri, 18 Mar 2022 07:09:15 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.6.1
Subject: Re: xterm (or x11) pastes are highlighted
To: cygwin AT cygwin DOT com
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>
From: n952162 <n952162 AT web DOT de>
In-Reply-To: <CAHWeT-YP4PVkWwoKR-JUtOheK9yTZ8O7H_kVtRk1q9O5dcZMXQ@mail.gmail.com>
X-Provags-ID: V03:K1:yI1KT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1J7qHD+TU7ZFxhjvfg5R4DX
rMd+y8JSb6EDubKiumTSKMkkDSt5jsUVr/yK2eIQUflCbFos2BEEvJhvURrUZsqHRCH3JndtA
sSckkmf/1MPR0vRb0iBi+K1VZfr1P8iVvFltesD15GlsHisr9HrvGG+JZepE8375Ui9YNIu0p
LwPcAUub61r3J/j8yFz7HrlmSvEygOpx6ovMSIpYAWCsK6KHIhS3K97LPGEFbHLIFsfzuXea7
2tzWgDfbLDCpOSIOFBEPXO0tQ22VKMzwObmSnQ8RoW4ThQhavi7Ze5x6guZjnNnx6q4sf03uo
9x/nSE0MCJN9X0=
X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,
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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 22I67IBK002540

On 3/18/22 00:22, Andy Koppe wrote:
> 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
>

Thank you for a very informative and helpful response!



-- 
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