PJ *_*ngh 8 gnome-terminal 21.04
在 Ubuntu 21.04 中,当文本粘贴到 Gnome 终端时,文本总是高亮显示。

这种令人困惑的行为在 Ubuntu 20.04 中不存在。
如何在 Ubuntu 21.04 中恢复 Gnome 终端的这种令人困惑的行为,使其行为类似于 Ubuntu 20.04 中的 Gnome 终端?
Fed*_*eli 14
I also noticed this behavior after upgrade to 21.04. Don't think this as a bug: It is a new "default setting" in Bash 5.1.
First check:
$ bind -v | grep bracketed
set enable-bracketed-paste on
Run Code Online (Sandbox Code Playgroud)
Then, try to disable (for the current session):
$ bind 'set enable-bracketed-paste off'
$ bind -v | grep bracketed
set enable-bracketed-paste off
Run Code Online (Sandbox Code Playgroud)
And retry your findings in that terminal session. This is also explained in: /sf/ask/2492779411/
I would suggest living with this new default setting of Bash, since it prevents the accidental middle-clicking or copy/pasting of multiple lines (consisting of possibly malicious commands) from the clipboard.