Re: Any way to have scripted session exits?

2013-03-18 Thread Thomas Adam
On 18 March 2013 03:44, Thiago Padilha wrote: > After reading the code a little bit, I'm guessing this is not possible > at the moment. > > Nicholas, what are your thoughts about adding another option to the > new-session command, one that would let the user pass a command to be > executed right b

Re: Can't bind -n "M-["

2013-03-18 Thread Nicholas Marriott
This is a bug, try this. You will still have to wait for escape-time to expire before anything happens though. diff --git a/tty-keys.c b/tty-keys.c index fab8c3f..d86d22c 100644 --- a/tty-keys.c +++ b/tty-keys.c @@ -498,6 +498,7 @@ tty_keys_next(struct tty *tty) goto complete_key;

Re: Performing math using environment variables

2013-03-18 Thread Nicholas Marriott
If you build tmux from git you can resize to an absolute size with resize-pane, so you can probably use that. On Fri, Mar 15, 2013 at 10:49:47AM -0400, Hameed Gifford wrote: >I'm trying to set up a file to load by source-file that splits a window >into multiple panes, by this format: >

Re: Any way to have scripted session exits?

2013-03-18 Thread Thiago Padilha
>From what I understood by reading the hook-support email, it performs actions before/after commands are ran. I was thinking of a more generic way to handle session cleanup(eg: server receives SIGTERM). I will to do it myself if I knew it would be accepted(hopefully before 1.8). However I'm assumi

Re: Performing math using environment variables

2013-03-18 Thread Hameed Gifford
Build from git, as in compile the code myself and not install from apt? Whats the difference? On Mon, Mar 18, 2013 at 6:04 AM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > If you build tmux from git you can resize to an absolute size with > resize-pane, so you can probably use that.

Re: Any way to have scripted session exits?

2013-03-18 Thread Nicholas Marriott
Hi Hooks will initially only do things before and after commands but we will add other hooks later - this can be one of them. On Mon, Mar 18, 2013 at 08:11:09AM -0300, Thiago Padilha wrote: > >From what I understood by reading the hook-support email, it performs > actions before/after commands a

Re: Any way to have scripted session exits?

2013-03-18 Thread Thiago Padilha
I just read through the hook-support thread, but it hasn't been updated in a few months. Is there anything I can do to speed up the merge? I could port thomas code to the new cmd_q API and work on whatever feature is still missing On Mon, Mar 18, 2013 at 12:32 PM, Nicholas Marriott wrote: > Hi >

Re: Any way to have scripted session exits?

2013-03-18 Thread Thomas Adam
On Mon, Mar 18, 2013 at 01:23:30PM -0300, Thiago Padilha wrote: > I just read through the hook-support thread, but it hasn't been > updated in a few months. > > Is there anything I can do to speed up the merge? I could port thomas > code to the new cmd_q API and work on whatever feature is still >

Re: Any way to have scripted session exits?

2013-03-18 Thread Thiago Padilha
That's nice, let me know if I can help you in any way On Mon, Mar 18, 2013 at 1:28 PM, Thomas Adam wrote: > On Mon, Mar 18, 2013 at 01:23:30PM -0300, Thiago Padilha wrote: >> I just read through the hook-support thread, but it hasn't been >> updated in a few months. >> >> Is there anything I can

Should copy-pipe use a (writable) job?

2013-03-18 Thread Chris Johnsen
Using popen leaves the server vulnerable to "freezing up" if the user configures a long-running command for copy-pipe (or dead locking if the command uses a tmux command (e.g. to make a query)). A copy-pipe command may need certain environment variables (e.g. xclip uses DISPLAY). With popen, the c

Compiling tmux as non-root user

2013-03-18 Thread Jai Dayal
Hi, I'm trying to install tmux as a non-root user on a login node for a cluster. I have to install ncurses and libevent myself. That's no problem, as they both built and installed fine. libevent is 2.0.21-stable, ncurses is 5.9. Both are installed here: net/hu19/skeller/x86_64-5.9 (lib/incl