[Bug 1926256] Re: Pasted text in the terminal is always highlighted and selected
Egmont Koblinger
1926256 at bugs.launchpad.net
Sun May 16 16:38:16 UTC 2021
> I see the benefit to the change in bash from a security perspective, so
> perhaps gnome-terminal needs to adapt to this new feature.
You missed the possibility of keeping bracketed paste mode (the
functionality) enabled (as I, for one, have had it enabled ever since
bash added this feature, which was like version 4.3 or 4.4 or so), but
configuring (patching?) bash not to use inverse colors for pasted text.
Use regular colors as it used to do, or some actual coloring (e.g.
magenta), or underlining etc.
> This is one option, but it may have implications for accessibility
If it's good enough for text highlighting in all GTK apps, including the
Firefox browser, then I doubt there would suddenly be a11y
considerations arising in the terminal. But of course I might be missing
something.
> There may also be other things that gnome-terminal cold do to adapt to
> this change.
I can't think of any other easy way. I mean, for example Terminology
uses fancy diagonal shading and stronger contour for the highlighted
area, but I highly doubt gnome-terminal (vte) would do anything similar
any time soon; especially if GTK doesn't have such a feature either.
Also don't forget that presumably about a dozen other terminal emulators
suffer from the same problem. If you choose to adjust terminals to bash,
rather than the other way around, you'll have to do it with many-many
terminals. I don't believe it's the preferred approach.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1926256
Title:
Pasted text in the terminal is always highlighted and selected
Status in bash package in Ubuntu:
Confirmed
Status in gnome-terminal package in Ubuntu:
Invalid
Status in mate-terminal package in Ubuntu:
Confirmed
Status in vte2.91 package in Ubuntu:
Confirmed
Bug description:
Steps to reproduce:
1. Have Ubuntu 21.04 installed
2. Launch terminal
3a. Execute some command, select this command to copy it, then paste command
3b. Paste some command from clipboard to terminal
Expected result:
* pasted command is not highlighted and is not selected
Actual result:
* pasted command is selected and highlighted
ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: mate-terminal 1.24.1-1
ProcVersionSignature: Ubuntu 5.11.0-16.17-generic 5.11.12
Uname: Linux 5.11.0-16-generic x86_64
ApportVersion: 2.20.11-0ubuntu65
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: MATE
Date: Tue Apr 27 09:43:56 2021
InstallationDate: Installed on 2021-04-23 (3 days ago)
InstallationMedia: Ubuntu-MATE 21.04 "Hirsute Hippo" - Release amd64 (20210420)
SourcePackage: mate-terminal
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1926256/+subscriptions
More information about the foundations-bugs
mailing list