Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cirwin
on April 8, 2013
|
parent
|
context
|
favorite
| on:
Don't Copy-Paste from Website to Terminal
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.
TheJH_
on April 8, 2013
[–]
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
.
Consider applying for YC's W25 batch! Applications are open till Nov 12.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
It's probably easy to write a similar fix for bash.