gnachman/iTerm2 — pull request #88 by saitoha (2012-08-12 19:01:19+00:00)
Title: add xterm's OSC 52 set access support (for issue 2094)

Issue 2094: Support ^]]52 for clipboard integration
http://code.google.com/p/iterm2/issues/detail?id=2094

This patch makes tmux enable to access the clipboard and copy text from tmux's internal buffer.

When implementing this feature, we might consider security issues.
ref:
- http://code.google.com/p/mintty/issues/detail?id=258
- http://marc.info/?l=bugtraq&m=104612710031920

---
maricious clipboard access example:

1. set a text contains ^Z.
echo -en "\e]52;;GmVjaG8gaGVsbG8K\e\\" (= echo -e "\x1aecho hello\n" | pbcopy)

2. launch emacs
emacs -nw example.txt

3. paste
Command + V