Re: native xterm scrolling with mouse

2012-11-27 Thread Thomas Adam
Hi, On 28 November 2012 07:02, Sergey Naumov wrote: > I can't check it right now at work because build on Debian Squeeze is broken: > > control.c: In function ‘control_callback’: > control.c:103: warning: implicit declaration of function ‘evbuffer_readln’ > control.c:103: warning: nested extern d

Re: native xterm scrolling with mouse

2012-11-27 Thread Sergey Naumov
I can't check it right now at work because build on Debian Squeeze is broken: control.c: In function ‘control_callback’: control.c:103: warning: implicit declaration of function ‘evbuffer_readln’ control.c:103: warning: nested extern declaration of ‘evbuffer_readln’ control.c:103: error: ‘EVBUFFER

Re: [PATCH 1/1] Fix return value for load_cfg()

2012-11-27 Thread Nicholas Marriott
Applied, thanks. On Tue, Nov 27, 2012 at 10:42:51PM +, Thomas Adam wrote: > This sholud be "enum cmd_retval" since this is propagated via > source_file_exec() > --- > cfg.c | 4 ++-- > tmux.h | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/cfg.c b/cfg.c > index

[PATCH 1/1] Fix return value for load_cfg()

2012-11-27 Thread Thomas Adam
This sholud be "enum cmd_retval" since this is propagated via source_file_exec() --- cfg.c | 4 ++-- tmux.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cfg.c b/cfg.c index 74570e3..c5d6cbc 100644 --- a/cfg.c +++ b/cfg.c @@ -73,7 +73,7 @@ cfg_add_cause(struct causelist *

[PATCH 1/1] Fix return value for load_cfg()

2012-11-27 Thread Thomas Adam
This sholud be "enum cmd_retval" since this is propagated via source_file_exec() --- cfg.c | 4 ++-- tmux.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cfg.c b/cfg.c index 74570e3..c5d6cbc 100644 --- a/cfg.c +++ b/cfg.c @@ -73,7 +73,7 @@ cfg_add_cause(struct causelist *

Re: Setting pane title repeatedly causes status line problems

2012-11-27 Thread Adrian Luff
export TERM='xterm-256color' -Adrian On Nov 27, 2012, at 12:23 PM, Nicholas Marriott wrote: > What is TERM set to in all terminals outside tmux? > > > On Tue, Nov 27, 2012 at 10:14:16AM -0800, Adrian Luff wrote: >> This occurs in the Mac OS X 10.8.2 Terminal.app and iTerm2. >> It does no

Re: Setting pane title repeatedly causes status line problems

2012-11-27 Thread Nicholas Marriott
What is TERM set to in all terminals outside tmux? On Tue, Nov 27, 2012 at 10:14:16AM -0800, Adrian Luff wrote: >This occurs in the Mac OS X 10.8.2 Terminal.app and iTerm2. >It does not occur in uxterm (via xQuartz). >If I hold enter in uxterm I do see the issue in grouped sessions on

Re: Setting pane title repeatedly causes status line problems

2012-11-27 Thread Adrian Luff
This occurs in the Mac OS X 10.8.2 Terminal.app and iTerm2. It does not occur in uxterm (via xQuartz). If I hold enter in uxterm I do see the issue in grouped sessions on the other two terminals (but not in uxterm). -Adrian On Nov 27, 2012, at 9:56 AM, Nicholas Marriott wrote: > What termin

Re: Setting pane title repeatedly causes status line problems

2012-11-27 Thread Nicholas Marriott
What terminal are you using? Does this happen in xterm? On Tue, Nov 27, 2012 at 09:40:39AM -0800, Adrian Luff wrote: >Yes it does. >I see "1;1H" appear as text in some cases, which looks to be the termcap >command to reset to column 1 row 1 on the screen. If that's not being >proc

Re: Setting pane title repeatedly causes status line problems

2012-11-27 Thread Adrian Luff
Yes it does. I see "1;1H" appear as text in some cases, which looks to be the termcap command to reset to column 1 row 1 on the screen. If that's not being processed correctly it would explain the status line being drawn incorrectly. Here's my status-left and status-right lines (without e $() c

Re: problem with pasting from linux clipboard

2012-11-27 Thread Alexandre Provencio
On Tue, Nov 27, 2012 at 2:03 PM, Nicholas Marriott wrote: > If you kill tmux entirely and start it with "EVENT_NOEPOLL=1 tmux new" does > it work? Thanks for trying Nicholas, but unfortunately it did no fix. If using tmux locally, this issue is not so serious for me because I have vim's clipboar

Re: [PATCH V2 0/2] source-file fixes

2012-11-27 Thread Nicholas Marriott
Applied both with some trivial changes (to leave cfg_causes in cfg.c). Thanks. On Mon, Nov 26, 2012 at 02:42:49PM +, Thomas Adam wrote: > Hi, > > This is V2 of the original source-file improvements. > > [1/1]: Aggregate config errors from source-file commands > > This is largely unchanged

Re: can't attach to session

2012-11-27 Thread Mark Volkmann
It was a line in my .tmux.conf file that was causing the problem. Unfortunately I have deleted it and can't remember what it was. I seem to remember that I was doing something twice and deleting one line fixed the problem. On Tue, Nov 27, 2012 at 9:49 AM, Nicholas Marriott < nicholas.marri...@gmai

Re: Can't build tmux on Solaris 10

2012-11-27 Thread John Long
On Tue, Nov 27, 2012 at 04:01:22PM +, Nicholas Marriott wrote: > Never mind, theirs is enough. Thanks guys. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight in

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Nicholas Marriott
Solaris doesn't implement flock, it needs to be implemented by using fcntl or perhaps lockf, like in the SF bug report. On Tue, Nov 27, 2012 at 03:54:40PM +, John Long wrote: > On Tue, Nov 27, 2012 at 03:31:18PM +, Philip Herron wrote: > > The error is just: > > > > "client.c", line 82:

Re: problem with pasting from linux clipboard

2012-11-27 Thread Nicholas Marriott
If you kill tmux entirely and start it with "EVENT_NOEPOLL=1 tmux new" does it work? On Mon, Nov 26, 2012 at 02:16:31PM -0200, Alexandre Provencio wrote: > Bump? I'm sorry if this was already discussed but I really couldn't find > anything specific. Please, any info would be of help. > > -Alexa

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Philip Herron
I might give ago at looking into this tomorrow and try to resurrect that dudes patch and finish it off. On 27 November 2012 15:42, Nicholas Marriott wrote: > Well I haven't seen any sign of it actually being worked on further so > if someone else wants to make the changes properly and send them t

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Nicholas Marriott
Never mind, theirs is enough. On Tue, Nov 27, 2012 at 03:48:12PM +, John Long wrote: > I was in the middle of capturing one in Emacs and when I sent it my email > provider fell over. Do you still need this or are Philip's and Thomas's > posts past this point already? > > On Tue, Nov 27, 2012

Re: Setting pane title repeatedly causes status line problems

2012-11-27 Thread Nicholas Marriott
Does this stop happening if you take away the #() from your status-left/right? On Wed, Nov 21, 2012 at 04:18:28PM -0800, Adrian Luff wrote: >tmux should catch the escape sequence consistently but I seem to have >found a race condition case where it doesn't. Adding... > > export PROM

Re: Can't build tmux on Solaris 10

2012-11-27 Thread John Long
On Tue, Nov 27, 2012 at 03:31:18PM +, Philip Herron wrote: > The error is just: > > "client.c", line 82: warning: implicit function declaration: flock > "client.c", line 82: undefined symbol: LOCK_EX > "client.c", line 82: undefined symbol: LOCK_NB > "client.c", line 247: warning: implicit fun

Re: can't attach to session

2012-11-27 Thread Nicholas Marriott
What is in your .tmux.conf? On Wed, Nov 21, 2012 at 04:14:52PM -0600, Mark Volkmann wrote: >Here's a very simple script for starting or attaching to a tmux session >named "bad": >#!/bin/bash >if ! tmux has-session -t bad; then >* tmux new-session -s bad -d >fi >tmux at

Re: Can't build tmux on Solaris 10

2012-11-27 Thread John Long
I was in the middle of capturing one in Emacs and when I sent it my email provider fell over. Do you still need this or are Philip's and Thomas's posts past this point already? On Tue, Nov 27, 2012 at 03:10:58PM +, Nicholas Marriott wrote: > Show a build log please. --

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Nicholas Marriott
Well I haven't seen any sign of it actually being worked on further so if someone else wants to make the changes properly and send them that'd be great :-). Any change to _XPG6 will need to be tested on Solaris 10 and 11 anyway. On Tue, Nov 27, 2012 at 03:35:00PM +, Thomas Adam wrote: > On T

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Philip Herron
Seems people say to use lockf or use fcntl.h: struct flock fl; int result; memset(&fl, 0, sizeof fl); fl.l_type = F_WRLCK; fl.l_whence = SEEK_SET; fl.l_start = 0; fl.l_len = 0; fl.l_pid = getpid(); result = fcntl(fd, F_SETLKW, &fl); no idea which is best to go for. On 27 November 2012 15:31,

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Thomas Adam
On Tue, Nov 27, 2012 at 03:31:18PM +, Philip Herron wrote: > The error is just: > > "client.c", line 82: warning: implicit function declaration: flock > "client.c", line 82: undefined symbol: LOCK_EX > "client.c", line 82: undefined symbol: LOCK_NB > "client.c", line 247: warning: implicit fun

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Philip Herron
The error is just: "client.c", line 82: warning: implicit function declaration: flock "client.c", line 82: undefined symbol: LOCK_EX "client.c", line 82: undefined symbol: LOCK_NB "client.c", line 247: warning: implicit function declaration: cfmakeraw can't seem to figure out where that flock pro

Re: Can't build tmux on Solaris 10

2012-11-27 Thread John Long
On Tue, Nov 27, 2012 at 03:08:20PM +, Philip Herron wrote: > Hey there > > I got it to configure with: > > ./configure CC=suncc CXX=sunCC CFLAGS="-fast -xO5 -xunroll=20" > CFLAGS="-I/opt/csw/include" LDFLAGS="-L/opt/csw/lib" > --prefix=/opt/tmux > > using pkgutil -i -y CSWlibevent_dev I bui

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Nicholas Marriott
Show a build log please. On Tue, Nov 27, 2012 at 02:54:47PM +, John Long wrote: > That would be awesome. If needed I'll be happy to test it on Intel and SPARC > boxes. > > /jl > > On Tue, Nov 27, 2012 at 02:46:30PM +, Philip Herron wrote: > > I might give it a go now i am working on a s

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Philip Herron
Hey there I got it to configure with: ./configure CC=suncc CXX=sunCC CFLAGS="-fast -xO5 -xunroll=20" CFLAGS="-I/opt/csw/include" LDFLAGS="-L/opt/csw/lib" --prefix=/opt/tmux using pkgutil -i -y CSWlibevent_dev Checkout opencsw.org for solaris you get pkgutil for loads of useful packages so you d

Re: Can't build tmux on Solaris 10

2012-11-27 Thread John Long
That would be awesome. If needed I'll be happy to test it on Intel and SPARC boxes. /jl On Tue, Nov 27, 2012 at 02:46:30PM +, Philip Herron wrote: > I might give it a go now i am working on a solaris 10 machine at the moment. > > On 27 November 2012 14:44, John Long wrote: > > I'm striking

Re: Can't build tmux on Solaris 10

2012-11-27 Thread Philip Herron
I might give it a go now i am working on a solaris 10 machine at the moment. On 27 November 2012 14:44, John Long wrote: > I'm striking out with this. The last suggestion I saw was to try linking > against ncurses instead of Solaris curses. I tried but apparently I don't > know enough to do that.

Can't build tmux on Solaris 10

2012-11-27 Thread John Long
I'm striking out with this. The last suggestion I saw was to try linking against ncurses instead of Solaris curses. I tried but apparently I don't know enough to do that. I changed the Makefile to use -lncurses instead of -lcurses but when I started adding include paths in CFLAGS and LFLAGS I broke

Re: native xterm scrolling with mouse

2012-11-27 Thread Nicholas Marriott
Actually, I've reverted this. When I use "mode-mouse on" with applications inside that claim the mouse (easiest example is another tmux server with mouse-select-pane and the window split) it works fine. Do I misunderstand what you are trying to fix? On Tue, Nov 27, 2012 at 02:23:03PM +, Nich

Re: native xterm scrolling with mouse

2012-11-27 Thread Nicholas Marriott
Applied, thnaks. On Fri, Oct 26, 2012 at 08:09:17PM +0400, Sergey Naumov wrote: > Yes, of course, there have to be a negation: > sknaumov@sknaumov-VirtualBox:~/tmux.compile$ git diff HEAD > diff --git a/input-keys.c b/input-keys.c > index 2b30d4b..b39d024 100644 > --- a/input-keys.c > +++ b/inpu

Re: Ignoring prefix key special handling when pasting

2012-11-27 Thread Nicholas Marriott
Hi Sorry for the delay. This needs to handle -n key bindings too and unfortunately I think it needs to be an option. Try this please: Index: options-table.c === RCS file: /cvs/src/usr.bin/tmux/options-table.c,v retrieving revision 1