Fwd: OSX 10.6.5 , Terminal.app, iTerm.app pbpaste, pbcopy do not work under tmux
kevin beckford
chiggsy at lazyweb.ca
Sun Nov 28 19:08:09 PST 2010
Investigating this patch to make tmux work with pbcopy/pbpaste, felt
that I should let macports know about this issue...
---------- Forwarded message ----------
From: Nicholas Riley <njriley at illinois.edu>
Date: Sun, Nov 28, 2010 at 8:09 AM
Subject: Re: OSX 10.6.5 , Terminal.app, iTerm.app pbpaste, pbcopy do
not work under tmux
To: tmux-users at lists.sourceforge.net
In article <20101128115640.GA18152 at yelena.nicm.ath.cx>,
Nicholas Marriott <nicholas.marriott at gmail.com> wrote:
> There was something with some environment variable IIRC, find out what
> pbcopy and pbpaste depend on.
The problem is calling daemon(). Basically, once you call daemon(), you
can't use any GUI functionality.
<http://developer.apple.com/library/mac/#technotes/tn2005/tn2083.html%23S
ECDAEMONVSFRAMEWORKS>
This is a fix for the problem under 10.6 (obviously it needs
conditionalizing):
<https://gist.github.com/644805/701666ac560f936a8e4c590ad359530b231c2108>
I didn't write that, but it's the same as what Apple's patch to screen
does. The _vproc* functions aren't declared in a public header file
though they are open source:
<http://opensource.apple.com/source/launchd/launchd-329.3.2/launchd/src/v
proc_priv.h>
The function used above (_vprocmgr_detach_from_console) is on defined on
10.6. Apple's screen patches for 10.5 call another private vproc
function (_vprocmgr_move_subset_to_user). This also acts as a daemon()
replacement but doesn't seem to fix the problem with pbcopy/pbpaste not
working - it doesn't work in screen either.
vproc doesn't exist at all on 10.4 and earlier.
--
Nicholas Riley <njriley at illinois.edu>
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
tmux-users mailing list
tmux-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users
More information about the macports-users
mailing list