Add a small dance to daemon() to reattach tmux to the user's namespace (which

allows access to the clipboard) on OS X 10.10 and above.

Chis Johnsen has done much work on and documentation of this issue, the code is
copied (with some tweaks) from his reattach-to-user-namespace at:

    https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard

Tested by Enrico Ghirardi.

Will see how this goes, if it breaks stuff it might go away again.
This commit is contained in:
Nicholas Marriott
2017-06-06 07:59:53 +01:00
parent 63f8a2cb89
commit 78352fdd32
4 changed files with 106 additions and 1 deletions

View File

@ -1,5 +1,8 @@
CHANGES FROM 2.5 to master
* Do a dance on OS X 10.10 and above to return tmux to the user namespace,
allowing access to the clipboard.
* Do not allow escape sequences which expect a specific terminator (APC, DSC,
OSC) to wait for forever - use a small timeout. This reduces the chance of
the pane locking up completely when sent garbage (cat /dev/random or