Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cirwin
· 13y ago · 0 comments
Good terminal emulators (xterm, urxvt, iTerm2, etc.) have support for "bracketed paste mode" which can be used to fix this problem in zsh:
https://github.com/robbyrussell/oh-my-zsh/pull/1698
(original code:
http://www.zsh.org/mla/users/2011/msg00367.html
)
It's probably easy to write a similar fix for bash.
Comments
[–]
TheJH_
13y ago
I initially thought it'd work, but actually, this protection can be circumvented. See the updated version of
http://thejh.net/misc/website-terminal-copy-paste
.