How to undo 21.04's reverse video for pasted text?
Colin Watson
cjwatson at ubuntu.com
Sun May 23 12:15:10 UTC 2021
On Fri, May 14, 2021 at 05:23:38PM +0100, Chris Green wrote:
> I have just upgraded my laptop from 20.10 to 21.04 and pasted text now
> appears in reverse video in my terminal windows, how do I undo this
> unwanted change? I want pasted text in normal video.
I believe this is from these changes in the version of readline bundled
with bash 5.1:
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. This is tied to bracketed
paste and can be disabled by turning off bracketed paste.
g. Readline sets the mark in several additional commands.
h. Bracketed paste mode is enabled by default.
Bracketed paste is incredibly useful (it's a very effective way to
prevent mispasting accidents), so it's unfortunate that the highlighting
behaviour is tied to that and apparently can't be controlled
independently. I mean, you can in principle control it by creating a
new terminal definition that treats the "so" and "se" capabilities
differently, but that isn't a reasonable thing to expect people to do.
Personally I'm fine with the highlighting so that I know that a
bracketed paste is in progress, but it seems that not everyone is.
I'd suggest reporting this to bash upstream
(https://www.gnu.org/software/bash/), since if nobody tells them that
they'd like this to be controllable independently of bracketed paste
then they won't know.
--
Colin Watson (he/him) [cjwatson at ubuntu.com]
More information about the ubuntu-users
mailing list