Re: tmux on Raspberry Pi

2013-04-22 Thread Nicholas Marriott
Do you have reattach-to-user-namespace? Isn't that for OS X? Probably your default-shell or default-command is wrong in .tmux.conf. On Mon, Apr 22, 2013 at 07:33:04PM -0500, Mark Volkmann wrote: >Thanks! That produces four files whose names begin with "strace.out.". >There are around 20 o

Re: tmux on Raspberry Pi

2013-04-22 Thread Mark Volkmann
Thanks! That produces four files whose names begin with "strace.out.". There are around 20 open() failures across those files that all say "No such file or directory". I suspect all or most of these are expected errors for optional files. Here they are: /etc/ld.so.nohwcap /tmp/tmux-1000/default /e

Re: Make tmux.conf relative to sysconfdir

2013-04-22 Thread Nicholas Marriott
Ok makes sense, please try this. It is important that the default (without --prefix or --sysconfdir) stays as /etc not /usr/local/etc so I had to add a hack to configure.ac to do that, --sysconfdir will still override. diff --git a/Makefile.am b/Makefile.am index c131940..726582a 100644 --- a/Mak

Re: [PATCH 1/1] choose-tree: Fix current selection when using '-u'

2013-04-22 Thread Nicholas Marriott
Applied, thanks. On Sun, Apr 21, 2013 at 11:48:23AM +0100, Thomas Adam wrote: > When choose-tree learnt the '-u; option to render the tree fully expanded, > it didn't then reset the current selection in the expanded tree to be that > of the current session and window. > > This introduces a new f

Re: FAO Thomas -> code more carefully!

2013-04-22 Thread Patrick Shanahan
* Jason Timrod [04-22-13 17:17]: > Do you speak for tmux aswell? I dont feel i have disrespected anyone - i > have pointed out weaknesses which need looking in to by NicM and no one > has yet made this point. Perhaps he feels no need to respond. > i am making that point. Quite tactfully, too.

Re: FAO Thomas -> code more carefully!

2013-04-22 Thread Jason Timrod
Hi, Do you speak for tmux aswell? I dont feel i have disrespected anyone - i have pointed out weaknesses which need looking in to by NicM and no one has yet made this point. i am making that point. i am waiting for a plan of action. Jason From: Alexander Ts

Re: FAO Thomas -> code more carefully!

2013-04-22 Thread Alexander Tsepkov
Jason, Not to butt into your argument, but this passive-aggressive behavior is disrespectful, not only to Thomas, but tmux community as a whole. The project is open-sourced to encourage contributions, attacking people on the mailing list discourages them. I'm sure if Nicholas agreed with your view

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread Frank Terbeck
Hello John, Note, that I didn't read the whole backlog. From what I gathered, your zsh is misbehaving inside of tmux. I can guess what might be going on. Maybe I'm onto something or maybe not. I guess we'll only know if you try. ;) John Long wrote: [...] > Yes, correct. And only with zsh. In bash

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread Nicholas Marriott
Hmm this is weird. What is TERM set to inside tmux? Do you have the infocmp command? If so please run "infocmp" inside tmux and send me the output. On Mon, Apr 22, 2013 at 01:55:18PM +, John Long wrote: > I'm sending this again as attachments since the characters may not be > displayable in

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread John Long
I'm sending this again as attachments since the characters may not be displayable in email. First attachment is in xterm, second in tmux. Not sure if attachments will go through to the mailing list though. If it doesn't work let me know and I'll send it to you directly. Script started on Mon Apr 2

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread John Long
On Mon, Apr 22, 2013 at 02:31:13PM +0100, Nicholas Marriott wrote: > Ok so zsh is probably sending something weird. > > Can you run script then reproduce then exit script and send me the > typescript file, eg something like: > > $ script > Script started, output file is typescript > $ abcdef > $

Re: [PATCH] FIX window resizing when a grouped session's child dies

2013-04-22 Thread Nicholas Marriott
Applied, thanks, although I left out the comment. On Fri, Apr 19, 2013 at 01:25:27AM -0700, Daniel Ralston wrote: > Hi all, > > I found and fixed a bug where window sizes weren't being recalculated > in grouped sessions when a session's child dies, killing the window. > > I've included the repro

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread John Long
On Mon, Apr 22, 2013 at 02:11:31PM +0100, Nicholas Marriott wrote: > This isn't clear. Are you saying the problem only occurs at the zsh > prompt and not when you do it with cat? Yes. > > If I do this at my shell prompt, where X is the cursor: > > $ abcdefX > > I get: > > $ abcdeX > > If I

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread Nicholas Marriott
Ok so zsh is probably sending something weird. Can you run script then reproduce then exit script and send me the typescript file, eg something like: $ script Script started, output file is typescript $ abcdef $ exit On Mon, Apr 22, 2013 at 01:25:42PM +, John Long wrote: > On Mon, Apr 22,

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread John Long
On Mon, Apr 22, 2013 at 02:15:49PM +0100, Nicholas Marriott wrote: > Ok so the problem only occurs with zsh. > If you reproduce the problem inside tmux and then press C-b r (where C-b > is your tmux prefix key), does the cursor move to the right place? No, it doesn't move at all. ---

Re: tmux on Raspberry Pi

2013-04-22 Thread Nicholas Marriott
Try "strace -ff -ostrace.out tmux new" then look for an open() that fails in the output files. Send me the files if you can't figure it out and I'll have a look. On Mon, Apr 22, 2013 at 08:18:01AM -0500, Mark Volkmann wrote: >I was able to install tmux on a Raspberry Pi running the recommende

Re: Make tmux.conf relative to sysconfdir

2013-04-22 Thread Dagobert Michelsen
Hi Nicholas, Am 22.04.2013 um 15:09 schrieb Nicholas Marriott : > I think this might be better than generating tmux.h, although I haven't > tested it. You get the idea though :-). Thanks for the quick turnaround, this looks good, but does not change the manpage which I would consider a good idea

tmux on Raspberry Pi

2013-04-22 Thread Mark Volkmann
I was able to install tmux on a Raspberry Pi running the recommended "Wheezy" Debian distribution. However, I wasn't able to start it. When I enter "tmux new -s foo", it just outputs "[exited]". If I run the same command with sudo, it works. Maybe I need to change permissions on some files. Any ide

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread Nicholas Marriott
Ok so the problem only occurs with zsh. If you reproduce the problem inside tmux and then press C-b r (where C-b is your tmux prefix key), does the cursor move to the right place? On Mon, Apr 22, 2013 at 01:08:54PM +, John Long wrote: > On Mon, Apr 22, 2013 at 01:58:33PM +0100, Nicholas Mar

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread John Long
On Mon, Apr 22, 2013 at 01:08:54PM +, John Long wrote: > > I'm trying to work out if this is because tmux is getting the wrong > > thing from zsh, or getting the right thing from zsh but displaying the > > wrong thing for xterm. > > Wondering about this earlier, I switched to bash before invo

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread Nicholas Marriott
On Mon, Apr 22, 2013 at 01:03:53PM +, John Long wrote: > On Mon, Apr 22, 2013 at 12:48:47PM +, John Long wrote: > > On Mon, Apr 22, 2013 at 01:38:37PM +0100, Nicholas Marriott wrote: > > > Hmm this looks fine too. If you do "cat" outside tmux and press > > > backspace, do you get "^H" or no

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread John Long
On Mon, Apr 22, 2013 at 01:58:33PM +0100, Nicholas Marriott wrote: > Ok, but is that behaviour just at the shell prompt, or if you run "cat" > then do the same, ie you are typing in cat rather than at the shell, > does the cursor also move wrongly? Eg do: > > $ cat > abcdef > > Instead of at the

Re: Make tmux.conf relative to sysconfdir

2013-04-22 Thread Nicholas Marriott
Hi I think this might be better than generating tmux.h, although I haven't tested it. You get the idea though :-). diff --git a/Makefile.am b/Makefile.am index c131940..d5bad20 100644 --- a/Makefile.am +++ b/Makefile.am @@ -15,7 +15,7 @@ dist-hook: find $(distdir) -name .svn -type d|xarg

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread John Long
On Mon, Apr 22, 2013 at 12:48:47PM +, John Long wrote: > On Mon, Apr 22, 2013 at 01:38:37PM +0100, Nicholas Marriott wrote: > > Hmm this looks fine too. If you do "cat" outside tmux and press > > backspace, do you get "^H" or nothing printed? > > It does what I would expect, it erases the t in

Re: Integration of patches for Solaris

2013-04-22 Thread John Long
On Mon, Apr 22, 2013 at 02:48:04PM +0200, Dagobert Michelsen wrote: > > Thanks for all your work on > > Solaris packaging, fixes, etc. I don't use any of it because I don't want > > the infrastructure and I don't want to make Solaris' preexisting package > > hell any worse, > > I really don't und

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread Nicholas Marriott
On Mon, Apr 22, 2013 at 12:48:47PM +, John Long wrote: > On Mon, Apr 22, 2013 at 01:38:37PM +0100, Nicholas Marriott wrote: > > Hmm this looks fine too. If you do "cat" outside tmux and press > > backspace, do you get "^H" or nothing printed? > > It does what I would expect, it erases the t in

Make tmux.conf relative to sysconfdir

2013-04-22 Thread Dagobert Michelsen
Hi, I noticed that the location of tmux.conf is not relative to sysconfdir, but hardcoded to /etc. This patch makes the location configurable: https://sourceforge.net/u/dmichelsen/tmux/ci/5547c378f07ecb7b64e2c0f8a0fec345c75873c4/ The patch can also be downloaded here: https://sourceforge.ne

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread John Long
On Mon, Apr 22, 2013 at 01:38:37PM +0100, Nicholas Marriott wrote: > Hmm this looks fine too. If you do "cat" outside tmux and press > backspace, do you get "^H" or nothing printed? It does what I would expect, it erases the t in cat and leaves me with ca, no funny characters are printed. > > Wh

Re: Integration of patches for Solaris

2013-04-22 Thread Dagobert Michelsen
Hi John, Am 22.04.2013 um 13:28 schrieb John Long : > On Mon, Apr 22, 2013 at 01:00:19PM +0200, Dagobert Michelsen wrote: > >> No, that is just the files from git. "Using git" is facilitating the command >> listed on the webpage >> git clone git://git.code.sf.net/p/tmux/tmux-code tmux-tmux-code

Re: Integration of patches for Solaris

2013-04-22 Thread John Long
On Mon, Apr 22, 2013 at 01:20:29PM +0100, Nicholas Marriott wrote: > > Unfortunately, I am having the same problem I have always had on Solaris > > Intel: the backspace key goes in the wrong direction. This is real odd > > because on Solaris SPARC it works ok. > > > > Do you or anyone else have a

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread Nicholas Marriott
Hmm this looks fine too. If you do "cat" outside tmux and press backspace, do you get "^H" or nothing printed? When you say the backspace goes forward, do you mean that the cursor moves right but the character is still deleted, or the cursor moves but the character isn't deleted, or what? Does it

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread John Long
On Mon, Apr 22, 2013 at 01:25:55PM +0100, Nicholas Marriott wrote: > The stty looks fine I think, but I wonder if you backspace key is > sending ^H rather than ^?. > > I wonder if that is the case and your TERM has left or right set to ^H. > > Can you start tmux and then do "tmux info" and send m

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread Nicholas Marriott
The stty looks fine I think, but I wonder if you backspace key is sending ^H rather than ^?. I wonder if that is the case and your TERM has left or right set to ^H. Can you start tmux and then do "tmux info" and send me the output? On Mon, Apr 22, 2013 at 12:16:55PM +, John Long wrote: >

Re: Integration of patches for Solaris

2013-04-22 Thread Nicholas Marriott
On Mon, Apr 22, 2013 at 12:00:24PM +, John Long wrote: > Hi Nicholas, > > Thank you very much. In the meantime after I got Dagobert's answer and had > not yet received your post, I compiled and installed the latest gawk and the > tmux build goes ok now. It still looks we're in somewhat of a fl

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread John Long
On Mon, Apr 22, 2013 at 12:54:59PM +0100, Nicholas Marriott wrote: > What was the mail subject of the previous thread? This was my first email to the list, with a bad subject line since I was posting past my bedtime: http://sourceforge.net/mailarchive/message.php?msg_id=29643966 Sometime after t

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread John Long
On Mon, Apr 22, 2013 at 12:54:59PM +0100, Nicholas Marriott wrote: > What was the mail subject of the previous thread? Oh, sorry, I suppose you mean the thread from last year? Let me check and I'll post here again as soon as I find it. Thanks.

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel]

2013-04-22 Thread John Long
On Mon, Apr 22, 2013 at 12:54:59PM +0100, Nicholas Marriott wrote: > What was the mail subject of the previous thread? Same as above, minus the "[backspace key.." etc. > Can you send me "stty -a" output inside and outside tmux? Yes, thank you here it is: This is the stty -a output from an xter

Re: Integration of patches for Solaris

2013-04-22 Thread John Long
Hi Nicholas, Thank you very much. In the meantime after I got Dagobert's answer and had not yet received your post, I compiled and installed the latest gawk and the tmux build goes ok now. It still looks we're in somewhat of a flux regarding which of Dagobert's patches made it to head because with

Re: FAO Thomas -> code more carefully!

2013-04-22 Thread Jason Timrod
Hi, I've not herd anything from NicM yet. Does this mean my points here are being addressed? Jason - Original Message - From: Jason Timrod To: Thomas Adam Cc: "tmux-users@lists.sourceforge.net" Sent: Sunday, April 21, 2013 6:29 PM Subject: Re: FAO Thomas -> code more carefully! Hi,

Re: choose-tree automatic update

2013-04-22 Thread Jason Timrod
Hi, I think this is because when in choose-tree nothing can be updated, yes? I thought I remember this working once before in the past? Can someone look in to this? Jason - Original Message - From: Jason Timrod To: "tmux-users@lists.sourceforge.net" Cc: Sent: Monday, April 22, 2013

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread Nicholas Marriott
What was the mail subject of the previous thread? Can you send me "stty -a" output inside and outside tmux? On Mon, Apr 22, 2013 at 11:47:32AM +, John Long wrote: > > > The script is for gawk, not nawk. Feel free to use e.g. the one from > > > > OpenCSW. > > I built the latest copy of gawk

Re: Integration of patches for Solaris

2013-04-22 Thread Nicholas Marriott
The script isn't for awk, I think we just invoke it in a way nawk isn't pleased with. Try this please: You will need to run autogen.sh again. diff --git a/Makefile.am b/Makefile.am index c5369fd..c131940 100644 --- a/Makefile.am +++ b/Makefile.am @@ -242,7 +242,7 @@ tmux.1: tmux.1.in if t

Re: Integration of patches for Solaris [backspace key goes forward on Solaris Intel

2013-04-22 Thread John Long
> > The script is for gawk, not nawk. Feel free to use e.g. the one from > > > OpenCSW. I built the latest copy of gawk and now tmux builds ok, but I am back to the same problem I reported last year, which is the backspace key goes forward. Do you have any idea what could be causing this? It's bee

Re: Integration of patches for Solaris

2013-04-22 Thread John Long
Hi Dagobert, On Mon, Apr 22, 2013 at 01:00:19PM +0200, Dagobert Michelsen wrote: > No, that is just the files from git. "Using git" is facilitating the command > listed on the webpage > git clone git://git.code.sf.net/p/tmux/tmux-code tmux-tmux-code > or something. Learning git pays off, but ha

Re: Integration of patches for Solaris

2013-04-22 Thread Dagobert Michelsen
Hi John, Am 22.04.2013 um 12:46 schrieb John Long : > On Sun, Apr 21, 2013 at 10:55:29PM +0200, Dagobert Michelsen wrote: >> Hi John, >> >> Am 21.04.2013 um 17:26 schrieb John Long : >>> On Sun, Apr 21, 2013 at 05:16:09PM +0200, Dagobert Michelsen wrote: Am 21.04.2013 um 12:48 schrieb John L

Re: Integration of patches for Solaris

2013-04-22 Thread John Long
On Mon, Apr 22, 2013 at 09:45:29AM +0100, Nicholas Marriott wrote: > In the first diff it should be enough just to remove the #include line > because compat.h already includes it, so I have done that. > > The lockf change has gone into the OpenBSD repo rather than portable so > will be pulled thro

Re: Integration of patches for Solaris

2013-04-22 Thread John Long
On Sun, Apr 21, 2013 at 10:55:29PM +0200, Dagobert Michelsen wrote: > Hi John, > > Am 21.04.2013 um 17:26 schrieb John Long : > > On Sun, Apr 21, 2013 at 05:16:09PM +0200, Dagobert Michelsen wrote: > >> Am 21.04.2013 um 12:48 schrieb John Long: > >> All patches are against HEAD: > >> https://sour

Re: Integration of patches for Solaris

2013-04-22 Thread Nicholas Marriott
In the first diff it should be enough just to remove the #include line because compat.h already includes it, so I have done that. The lockf change has gone into the OpenBSD repo rather than portable so will be pulled through to git in the next sync. Applied the cfmakeraw change as-is. Many thank

choose-tree automatic update

2013-04-22 Thread Jason Timrod
Hi, If I leave choose-tree open and create other sessions, how do I get the already open choose-tree to update? Did this used to work before Thomas changed the code for choose-tree? Thanks, Jason -- Precog is a next-ge