Re: tmux leaking socket descriptors under certain circumstances

2014-03-06 Thread Jan Larres
On 06/03/14 21:08, Nicholas Marriott wrote: > Email me the script you are running with #() in the status line please. That script is right here together with the other tmux configuration: https://github.com/majutsushi/etc/tree/master/tmux The lib directory in there contains the individual function

Re: tmux leaking socket descriptors under certain circumstances

2014-03-06 Thread Jan Larres
On 06/03/14 15:42, Balazs Kezes wrote: > On 2014-03-06 14:00, Jan Larres wrote: >> Like I said I had to restart tmux so I can't test that at the moment, >> but I could try to reproduce it. > > So when I do > set -g status-right "#(sleep 30)" > set -g status-interval 1 > I see that tmux

tmux expands symlinks

2014-03-06 Thread Helmut Tessarek
Something has changed in 1.9 how tmux resolves directories. I start tmux in my home directory (/home/tessus): [tessus@atvie01s 0 ~]$ pwd /home/tessus [tessus@atvie01s 0 ~]$ tmux After starting tmux, the prompt in tmux looks like this (instead of the ~): [tessus@atvie01s 0 /data/home/tessus]$ I

Re: patch for append to buffer

2014-03-06 Thread J Raynor
> Applied with a few changes, thanks The changes removed a bit of functionality. If someone does "setb -a foo", then I believe that "foo" should get appended to what's at buffer 0, assuming it isn't NULL. That doesn't happen with the patch that got applied. If the removal of that functionality

colour8 displayed as black

2014-03-06 Thread Matus Kmit
Hi all I want to change the colour of my status bar to grey. echo $TERM -> 8 With the help of: #!/usr/bin/env bash for i in {0..255} ; do printf "\x1b[38;5;${i}mcolour${i}\n" done I found out that I need "colour8" for grey. But after setting "set -g status-bg colour8" the background of th

Re: problem with new-window and current directory

2014-03-06 Thread Nicholas Marriott
Hmm yeh you're right it needs pid Original message From: Balazs Kezes Date: 06/03/2014 15:00 (GMT+00:00) To: Nicholas Marriott Cc: Matteo Cavalleri , tmux-users@lists.sourceforge.net Subject: Re: problem with new-window and current directory On 2014-03-06 12:55, Nic

Re: problem with new-window and current directory

2014-03-06 Thread Balazs Kezes
On 2014-03-06 12:55, Nicholas Marriott wrote: > Why not getsid()? Don't you need a pid for that? I haven't tried but I think we could use /proc/(window_pane.pid)/cwd for this if we pass the pid down to this function and then we don't even need the session id queries at all. -- Balazs --

Re: [PATCH] Fix segfault with window_pane_active_lost()

2014-03-06 Thread Nicholas Marriott
applied, thanks On Sat, Mar 01, 2014 at 09:54:03AM +, Thomas Adam wrote: > Don't segfaut when the parent of the layout cell is NULL; also assign the > lc->parent component to a common variable and use that throughout this > function. > --- > window.c | 9 ++--- > 1 file changed, 6 inse

Re: problem with new-window and current directory

2014-03-06 Thread Nicholas Marriott
Why not getsid()? On Sun, Mar 02, 2014 at 03:18:10PM +, Balazs Kezes wrote: > On 2014-02-27 22:09, Matteo Cavalleri wrote: > > $ cat /etc/hosts | less # the pipe is important here > > [...] > > so when I create a new window with e.g. something piped to less the > > new window opens on the r

Re: Different results when running the same script directly in shell vs through tmux run-shell

2014-03-06 Thread Nicholas Marriott
Hi They are being evaluated when run-shell happens, it now treats it's argument as a format. You should be able to use ##{} instead. On Sun, Mar 02, 2014 at 03:34:47PM -0500, Kaushal wrote: >I use tmux 1.9a in xterm, tcsh. > >I tweak a lot with my shell init script and I like to source

Re: Can't create window or pane

2014-03-06 Thread Nicholas Marriott
Hi What do you have in .tmux.conf? On Thu, Mar 06, 2014 at 09:44:13AM +0100, Pavlos Parissis wrote: >Hoi, >Since the realease of 1.8 tmux I have a very strange problem. >After some hours/days of work creating a window and a pane fails >and ' creating window failed: No such file o

Re: [PATCH] Mouse wheel support v6

2014-03-06 Thread Nicholas Marriott
Some changes, notably: - Broke the define changes into separate diffs and applied them. - I don't like it assuming that if m->scroll != 0 the wheel is in use, it is more understandable if it checks the event. - In window-choose.c the return was in the wrong place. Originally the idea of havin

Re: patch for append to buffer

2014-03-06 Thread Nicholas Marriott
Applied with a few changes, thanks On Mon, Feb 17, 2014 at 05:50:15PM -0600, J Raynor wrote: > > This looks good but you need to add the new flag and key to the manpage? > > I've attached a new patch that includes updates to the man page. --

Can't create window or pane

2014-03-06 Thread Pavlos Parissis
Hoi, Since the realease of 1.8 tmux I have a very strange problem. After some hours/days of work creating a window and a pane fails and ' creating window failed: No such file or directory' appears on the status bar and on the server-log i see keys are 1 () complete key  0x18 keys are 1 (c) com

Re: tmux leaking socket descriptors under certain circumstances

2014-03-06 Thread Nicholas Marriott
Email me the script you are running with #() in the status line please. On Thu, Mar 06, 2014 at 02:00:16PM +1300, Jan Larres wrote: > On 06/03/14 12:44, Thomas Adam wrote: > > On 5 March 2014 23:40, Jan Larres wrote: > >> No, it happens without me doing anything. Now that I think about it the >