urxvt's scrollback search with zsh's bracketed paste mode
Marc Lehmann
schmorp at schmorp.de
Fri Jan 11 05:21:15 CET 2019
On Mon, Dec 31, 2018 at 12:39:13PM +0100, Stefan Breunig <stefan at breunig.xyz> wrote:
> [1] https://github.com/zsh-users/zsh/blob/68405f31a043bdd5bf338eb06688ed3e1f740937/README#L38-L45
One other thing that occured to me after reading the zsh README: It is
dangerously wrong, or at least misleading:
Now, the new "bracketed paste mode" treats all the pasted text as
literal characters. This means, in particular, that a newline is
simply inserted as a visible newline;
As far as I know, this is untrue for urxvt and xterm, and probably many
other terminals, as it is merely a heuristic and there is no way for zsh
to reliably determine whether text is pasted or not.
What the author of the zsh README maybe meant is that when zsh detects
text as (likely) pasted, it will treat it as literal characters. This
would prevent accidents, but not deliberate attacks (for example,
many/most graphical web browsers have a well known security bug where the
browser internally selects different text than the user selected and this
could still be exploited).
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the rxvt-unicode
mailing list