[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash-5.1-rc1 available

From: Chet Ramey
Subject: Re: Bash-5.1-rc1 available
Date: Mon, 2 Nov 2020 10:31:58 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.4.0

On 11/2/20 10:12 AM, Tomas Janousek wrote:
> Hi Chet,
> On Mon, Oct 26, 2020 at 10:12:59AM -0400, Chet Ramey wrote:
>> Yes, you can disable bracketed paste mode. I'll make sure that turning off
>> bracketed paste mode disables the active region for incremental searches.
> Would you please consider making this configurable separately? I'd love to
> keep bracketed paste mode enabled, but I find the highlighting annoying (and a
> bit buggy, more on that later). It seems I'm not alone:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=972344

I'm going to see what the reaction is with bash-5.1 and go from there. The
entire rationale for including this feature was to highlight the text a
bracketed paste inserts. Since there was no separate use, and the
contributed patch didn't include a configuration option, I didn't add one.

> Also, the changelog says "when enabled", but there's currently no way to
> disable it:

You mean there is no separate way to disable it, which is true.

>> f. New active mark and face feature: when enabled, it will highlight the text
>>    inserted by a bracketed paste (the `active region') and the text found by
>>    incremental and non-incremental history searches.
> Now for the "bit buggy" part:
> 1. PS1='$ '
> 2. echo -n x
> 3. paste something
> 4. press left arrow
> Now the terminal shows "x$somethingg" instead of "x$ something".

If Readline doesn't start in column 0, all bets are off. The redisplay
needs to know where the physical cursor is in order to make decisions
about how and where to overwrite characters. If it doesn't know there
is a character in the last column, it's not going to try to overwrite it.
If it doesn't have to rewrite the prompt, it's not going to: it will
simply move the cursor to the physical location at the end of the prompt
string and output the line.


``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]