2 ms·
Last time I remember this issue was brought up: https://news.ycombinator.com/item?id=24797720 https://news.ycombinator.com/item?id=24797720 You can mostly avo
by jolmg 5y ago
Last time I remember this issue was brought up:
https://news.ycombinator.com/item?id=24797720 https://news.ycombinator.com/item?id=24797720
You can mostly avoid this problem with a little configuration if bracketed-paste-mode isn't default on whatever you're using.
Make sure it's supported and/or active on your terminal (e.g. urxvt, xterm) and the CLI/TUI programs (e.g. vim, bash/libreadline) on which you want to paste.
At the link above is a link to an SE answer I wrote years ago:
https://security.stackexchange.com/questions/39118/how-can-i-protect-myself-from-this-kind-of-clipboard-abuse/184112#184112 https://security.stackexchange.com/questions/39118/how-can-i...
It has a table showing what terminals support bracketed paste mode, and also provides a urxvt plugin to fix a bug in urxvt's implementation.