Re: remain-on-exit notification

2011-09-05 Thread Randy Stauner
awesome! thanks a lot! i personally build from Thomas's clone on github (which copies from sourceforge svn i believe). On Mon, Sep 5, 2011 at 4:41 PM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > Thanks, applied to OpenBSD. This'll be in SF in a week or so (everyone > is away/busy

Re: remain-on-exit notification

2011-09-05 Thread Nicholas Marriott
Thanks, applied to OpenBSD. This'll be in SF in a week or so (everyone is away/busy so when someone gets time to sync :-). On Wed, Aug 31, 2011 at 07:07:53AM -0700, Randy Stauner wrote: >Usually simpler is better **;-) >I think this is great! >Thanks! > >On Wed, Aug 31, 2011 at 1

Re: remain-on-exit notification

2011-08-31 Thread Randy Stauner
Usually simpler is better ;-) I think this is great! Thanks! (reposted to list after cutting off bottom to meet size limits.) On Wed, Aug 31, 2011 at 12:13 AM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > You need to reset the scroll region before you write line feeds or it'll > n

Re: remain-on-exit notification

2011-08-31 Thread Nicholas Marriott
You need to reset the scroll region before you write line feeds or it'll not scroll if the scroll region is set. Also I don't like so much text, you can't get this without setting remain-on-exit and what you can do with the pane after than can be found by looking in the manpage. How about just th

Re: remain-on-exit notification

2011-08-30 Thread Randy Stauner
Sweet, thanks! I think it works to append lines to the end of the scroll buffer both for regular shells and for full-screen commands. ('split-window "info make"' is what I used for a full-screen example). What do you think about this patch (goes on top of yours): diff --git a/trunk/server-fn.c b

Re: remain-on-exit notification

2011-08-30 Thread Nicholas Marriott
Move cursor to the very bottom (screen_size_y(s) - 1) and call screen_write_linefeed to scroll, it will move the top line into the history. On Tue, Aug 30, 2011 at 08:29:20AM -0700, Randy Stauner wrote: >Ah, yes, those are good points. >I did realize that I need to disconnect from tmux

Re: remain-on-exit notification

2011-08-30 Thread Randy Stauner
Ah, yes, those are good points. I did realize that I need to disconnect from tmux in order to stop the server... that's why my changes had no effect. I'm sure I've been bitten by that before. Perhaps I'll toy with it a little more. Is there a way to add lines to the bottom of the scroll buffer?

Re: remain-on-exit notification

2011-08-30 Thread Nicholas Marriott
Putting it at the bottom is harder, because where is the bottom? If you're running a full screen program the bottom is the very bottom. But if you have a clear screen with just eg 1 shell prompt on then the bottom needs to be line 2 or so. We can always put it at the very bottom of the screen but

Re: remain-on-exit notification

2011-08-30 Thread Randy Stauner
-- (sorry, didn't mean to send this directly instead of to the list) -- I don't use automatic rename in that session because of the large layout with many windows and ssh connections. This patch works nicely for me, thanks. While this does serve the purpose, I think it might be nicer/more intuit

Re: remain-on-exit notification

2011-08-30 Thread Nicholas Marriott
In fact, try this: Index: server-fn.c === RCS file: /cvs/src/usr.bin/tmux/server-fn.c,v retrieving revision 1.50 diff -u -p -r1.50 server-fn.c --- server-fn.c 23 Jan 2011 11:03:43 - 1.50 +++ server-fn.c 30 Aug 2011 09:54:49 -

Re: remain-on-exit notification

2011-08-30 Thread Nicholas Marriott
Hi If you have automatic rename on it will rename the window to add [dead] but yes printing that in the pane wouldn't do any harm, I'll add it to the todo list. On Mon, Aug 29, 2011 at 10:15:12AM -0700, Randy Stauner wrote: >My ssh connection died and it looked to me like the process hung. >

remain-on-exit notification

2011-08-29 Thread Randy Stauner
My ssh connection died and it looked to me like the process hung. Turns out I had remain-on-exit set but I did that so long ago I forgot about it. It would be nice to have some sort of notification that this pane is dead and you likely either want to kill it or respawn it. A window flag might be