In article 
<aanlkti=mvj-xcd580sco9h9v-tntqya5gutsnqflk...@mail.gmail.com>,
 kevin beckford <chig...@lazyweb.ca> wrote:

> I'm a bit confused here.
> 
> I'm not using leopard, i'm using as I said originally
> 
> 10.6.5.  Snow Leopard, is what I'm using.
> 
> I used to use screen , but switched to tmux.
> 
> I just tried this now, using /usr/bin/screen and Terminal.app, pbcopy,
> pbpaste work. exactly as I expected them to, in fact how they have
> been working for a long time.
> 
> So it works in /usr/bin/screen.  Screen however, faithful servant that
> it was, has been rewarded by retirement. Tmux is where the action is.
> 
> So....
> 
> we are saying that it's never going to work?

No.  Let me try again to explain.

tmux currently uses daemon() to daemonize.  If you do this on 10.5 or 
later, you don't get any access to Mac OS X system services such as the 
pasteboard (and in some cases your session won't last past logout).

Apple modified the version of screen they ship to use launchd vproc SPI 
to detach the process instead.  On 10.5, _vprocmgr_move_subset_to_user 
stops your screen session dying when you log out, and on 10.6 
_vprocmgr_detach_from_console also lets you use pbcopy/pbpaste.

Applying equivalent changes to tmux fixes the pbcopy/pbpaste issue on 
10.6 but doesn't help on 10.5 (same as screen).  As Jeremy Huddleston 
mentions in the macports.org link I posted, this is a result of a change 
in launchd behavior in 10.6, so it's unlikely we will be able to make it 
work with 10.5 if Apple can't.

Because tmux can compile on 10.5 (and probably earlier), it's necessary 
to insert some guards for the OS version.  The patch I pointed to simply 
calls the 10.6 SPI unconditionally, which means it won't compile on 10.5 
or any other OS.

Hope that is clear.
-- 
Nicholas Riley <njri...@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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to