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-08-31 Thread Randy Stauner
gc, &grid_default_cell, sizeof gc); > + gc.attr |= GRID_ATTR_BRIGHT; > + screen_write_puts(&ctx, &gc, "Pane is dead"); > + screen_write_stop(&ctx); > + wp->flags |= PANE_REDRAW; >return; > +

Re: remain-on-exit notification

2011-08-30 Thread Randy Stauner
e' to remove."); screen_write_stop(&ctx); wp->flags |= PANE_REDRAW; return; feel free to clean it up as necessary ;-) On Tue, Aug 30, 2011 at 8:38 AM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > > Move cursor to the very bottom (screen_size_y(s) - 1)

Re: remain-on-exit notification

2011-08-30 Thread Randy Stauner
; only have a few lines on screen you will lose them. > > On Tue, Aug 30, 2011 at 08:01:08AM -0700, Randy Stauner wrote: > >-- (sorry, didn't mean to send this directly instead of to the list) > -- > >I don't use automatic rename in that session bec

Re: remain-on-exit notification

2011-08-30 Thread Randy Stauner
_close_pane(wp); >window_remove_pane(w, wp); > > > On Tue, Aug 30, 2011 at 10:22:46AM +0100, Nicholas Marriott wrote: > > Hi > > > > If you have automatic rename on it will rename the window to add [dead] > > but yes printing that in the pane wou

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

Re: tmux has-session -t MYSESSION 2> /dev/null

2011-06-28 Thread Randy Stauner
Not exactly sure what you are looking to do... you can pipe stderr into stdout: command 2>&1 | command-that-receives-both-in-one-stream or you can dump stdout to a file (or /dev/null) and pipe stderr command 2>&1 >file | command-gets-stderr On Tue, Jun 28, 2011 at 4:28 AM, Jesse Molina wrote:

Re: Select pane in clockwise motion?

2011-06-27 Thread Randy Stauner
fyi... prefix, o is the default binding for "select-pane -t :.+" which was Nicholas's suggestion (for selecting the "next" pane) prefix, Ctrl-o is "rotate-window" which will move each pane over/down one position (the last pane will end up in the first position) essentially rotating the window. O

Re: Lock a particular pane?

2011-06-23 Thread Randy Stauner
If you only want to jump back and forth between 2 panes there is a last-pane command. This won't work for more than 2 "foreground" panes, though. On Thu, Jun 23, 2011 at 2:49 AM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > No there isn't, but you could write a script to toggle the

Re: bind-key to a literal keycode

2011-06-20 Thread Randy Stauner
that's strange... i tried something similar but i think i had the key combo wrong... oops. I also didn't realize that it was only F1-F4 that have these "other" codes. weird. Anyway, this patch works for me. Thanks! On Sat, Jun 18, 2011 at 9:30 PM, Dustin Kirkland wrote: > On Fri, Jun 17, 2011 at

Re: bind-key to a literal keycode

2011-06-18 Thread Randy Stauner
Using xfce4-terminal (TERM=xterm-265color) I see the same sequence when pressing shift-F2. The man page does not suggest that tmux supports "S-" as the shift modifier, and if it did I wouldn't know how to test it... you don't bind S-w, you just bind W... tmux does support the F2 key, but for me (

Re: How to differentiate tmux environment between Console and X

2011-06-16 Thread Randy Stauner
Do you have a `tty` command? that may show "/dev/tty1" vs "/dev/pts/3" which could identify it. There may be other environment settings you could consult as well... You could output your environment to a file under each of Console and X and then diff them. On Wed, Jun 15, 2011 at 12:29 AM, Nich

Re: Color display looks different between tmux and normal console

2011-06-16 Thread Randy Stauner
have you tried just setting TERM to "screen" instead of "sccreen-256color"? If I have my TERM set to a value my terminfo db doesn't have i don't see any colors. Granted, I also see lots of warnings from various programs... At work i had to build something into my .bashrc to check if the -256color

Re: Redo line wrapping on resize

2011-06-11 Thread Randy Stauner
lt; nicholas.marri...@gmail.com> wrote: > Does it happen with xterm? > > If you do C-b r in tmux after it happens does it fix it? > > > On Fri, Jun 10, 2011 at 05:12:41PM -0700, Randy Stauner wrote: > >Xfce 4 Desktop Environment > >version 4.6.1 (Xfce 4.6) >

Re: Redo line wrapping on resize

2011-06-10 Thread Randy Stauner
, using GTK+-2.20.1. On Fri, Jun 10, 2011 at 3:54 PM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > this is a different issue, sounds like something isn't sending tmux > SIGWINCH > > what window manager? > > > On Fri, Jun 10, 2011 at 08:19:22AM -070

Re: tmux & svn

2011-06-10 Thread Randy Stauner
It's hard to say for sure since my clone is already up to date, but i don't get any errors (it says I'm "already up to date"). On Fri, Jun 10, 2011 at 2:38 PM, Thomas Adam wrote: > On Fri, Jun 10, 2011 at 11:14:03PM +0200, clemens fischer wrote: > > On Thu-2011/05/26-23:39 Thomas Adam wrote > >

Re: Redo line wrapping on resize

2011-06-10 Thread Randy Stauner
I don't know if you'd consider this related, or a separate redrawing problem, but I normally have my terminal (xfce4-terminal) fill about half of my screen... if i maximize it for a bit, and then shrink it back to the previous size, the terminal ends up growing taller (which doesn't fit on my scre

Re: Bell event on monitor-activity

2011-06-08 Thread Randy Stauner
There is a visual-activity setting which displays a status line message, but i can't see from the man page any way to get a bell into that message. On Wed, Jun 8, 2011 at 7:18 AM, Zapphannes wrote: > Greetings > Is there any way to trigger a bell on window activity instead of just > appending a

Re: replace current tmux session

2011-06-03 Thread Randy Stauner
It certainly isn't magical, but that's what I use the tabs of a gui-terminal for. Currently I use xfce4-terminal, 1 tab for my local machine and 1 tab for my ssh session to $work. Ctrl-PgUp and Ctrl-PgDn switch b/t tabs. I launch my gui terminal from a script when I boot my laptop in the morning a

Re: Prefix key preference [Was: Run long commands in Vim]

2011-05-31 Thread Randy Stauner
or something when i could even more easily type the command I really wanted and never have that problem again. I had never used the real "vi" anyway... "vim" is all I've ever known. On Mon, May 30, 2011 at 4:52 PM, Chas. Owens wrote: > On Mon, May 30, 2011 at 10:0

Re: if statements in .tmux.conf

2011-05-30 Thread Randy Stauner
i see. well thanks very much for the conversation. i'll put that on my to-think-about list. :-) On Mon, May 30, 2011 at 10:51 AM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > On Mon, May 30, 2011 at 10:36:21AM -0700, Randy Stauner wrote: > >how is it diffe

Re: if statements in .tmux.conf

2011-05-30 Thread Randy Stauner
hy i became a programmer. On Mon, May 30, 2011 at 10:23 AM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > On Mon, May 30, 2011 at 10:17:20AM -0700, Randy Stauner wrote: > >maybe a path to consider would be to do conf-reading in a child > process (a > >

Re: if statements in .tmux.conf

2011-05-30 Thread Randy Stauner
kings. I'd love to learn more, though, and be able to help. On Mon, May 30, 2011 at 10:11 AM, Randy Stauner wrote: > true... that would make it much more difficult. > > > On Mon, May 30, 2011 at 10:08 AM, Nicholas Marriott < > nicholas.marri...@gmail.com> wrote: >

Re: if statements in .tmux.conf

2011-05-30 Thread Randy Stauner
true... that would make it much more difficult. On Mon, May 30, 2011 at 10:08 AM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > The tmux server can never block -- vRanger cuts backup time in half-while increas

Re: if statements in .tmux.conf

2011-05-30 Thread Randy Stauner
orking going on elsewhere in the server it gets more complicated. On Mon, May 30, 2011 at 7:26 AM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > this is accurate, if-shell is asynchronous > > need to fix that sometime but it ain't easy > > > On Sat, May 28, 2

Re: Prefix key preference [Was: Run long commands in Vim]

2011-05-30 Thread Randy Stauner
I currently use ctrl-/. Though, strangely that key combination on my computer actually sends ctrl-_ (which is how i have to specify it in my tmux conf). Something about it makes me uncomfortable, but it's easy for my fingers to reach and doesn't clash with any other keys. tl;dr: I, too, was tired

Re: if statements in .tmux.conf

2011-05-28 Thread Randy Stauner
I don't know too much about tmux internals but I'm going to take a guess here: I think the if-shell command is forking and running asynchronously and tmux is creating the first window before that command returns and sets the global option. Simply setting the option (with -g) does work as expected

Re: Run long commands in Vim

2011-05-27 Thread Randy Stauner
what mode are you in that makes ctrl x ctrl e run the command? In my vim in insert mode it scrolls and in normal mode the ctrl x decrements the current character (turns e to d or 2 to 1). So I'm not exactly sure what ctrl x ctrl e is doing on your pc, but often if i am using vim to compose a comma

Re: Solved? (was Re: Display behaviour, clearing, etc.)

2011-05-18 Thread Randy Stauner
what version of vim are you using? Also, what is the output of: infocmp screen I have an older machine that has different output than my usual dev pc. I have not tested anything over there... it would require installing tmux, libevent, and probably a few other things. But I was wondering if perha

Re: bind a key to multiple commands in copy mode

2011-05-18 Thread Randy Stauner
not a problem. thank you very much! On Wed, May 18, 2011 at 11:07 AM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > Applied to OpenBSD now, thanks, with some tweaks. Sorry for the delay. > > On Sat, Apr 30, 2011 at 12:16:01PM -0700, Randy Stauner wrote: > &g

Re: Display behaviour, clearing, etc.

2011-05-18 Thread Randy Stauner
I have tried to recreate this according to your steps and it does not happen to me, things look as you would expect them. I tried zsh as well--no change. It does seem odd that even the prompt disappears in your example. This probably won't help, but might be worth a try: Try putting this line in

Re: screen-style two-character bindings for high window numbers?

2011-05-17 Thread Randy Stauner
that would be great. maybe someday i'll have the chance to look into that :-) On Tue, May 17, 2011 at 10:37 AM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > yeah i have wanted this for ages but not done it yet > > way we were thinking of would be have a command which would lookup th

Re: unknown option escape-time?

2011-05-12 Thread Randy Stauner
escape-time is a server option so it must be set with -s: set-option -s escape-time 0 Does that work for you? On Thu, May 12, 2011 at 7:50 AM, Egan Ford wrote: > show-options has it, but set-option escape-time 0 errors with unknown > option. > > > --

Re: Cannot bind-key C-h

2011-05-12 Thread Randy Stauner
Using tmux-cvs in linux with 2 separate gui terminals (xfce4-terminal and xterm) I have no problem binding C-h. I don't know anything about macs... but I wonder if your terminal is grabbing the Control-H because it thinks you're trying to send a backspace character. If you hit Ctrl-V Ctrl-H at yo

Re: screen-style two-character bindings for high window numbers?

2011-05-11 Thread Randy Stauner
I have wondered about this myself, in screen I actually had multiple alternate tables / secondary prefix keys. For the windows-above-10 case you described you can use "command-prompt" to achieve a similar result, but you additionally have to press Enter (for example "prefix, Alt+1, 2, Enter" would

Re: tmux, vim, and OS X

2011-05-10 Thread Randy Stauner
sorry, I don't use mac (or gui vim) so I have no idea what you're talking about. On Tue, May 10, 2011 at 10:09 AM, Tim Gray wrote: > Anyone else having issues with vim using the OS X clipboard as it's > default yank buffer? I'm using MacVim as vim and I'm on OS X > 10.6.whateveriscurrent. In f

Re: about renaming screens

2011-05-04 Thread Randy Stauner
this brings up an interesting idea... this could be achieved if the -p argument to command-prompt processed the status-line escape sequences: command-prompt -p "rename (from #W)" "rename-window '%%'" Note that this does not currently work, it's a suggestion for a feature request. On Wed, Apr 20,

Re: bind a key to multiple commands in copy mode

2011-04-30 Thread Randy Stauner
lt; nicholas.marri...@gmail.com> wrote: > If copy and select line are the same surely there is no need for both? > Also please use C89 block comments (/* */) not C++ comments. > > > > On Sat, Apr 30, 2011 at 11:24:18AM -0700, Randy Stauner wrote: > >Sorry about that. >

Re: bind a key to multiple commands in copy mode

2011-04-30 Thread Randy Stauner
Sorry about that. Attached is a full patch containing Dave's initial work and my additions for: select-line, copy-line, and copy-end-of-line. Let me know if you'd prefer incremental patches or if you need them based off of a different point in the source history. Thanks! On Sat, Apr 30, 2011 at 3:

Re: bind a key to multiple commands in copy mode

2011-04-29 Thread Randy Stauner
edit-mode and adjusted the documentation slightly. If people like these changes I'd be willing to try my hand at documenting the rest of them. Also, should we setup default key-bindings for the other ones? So far i like this thread! Thanks everybody! On Fri, Apr 29, 2011 at 3:35 PM, Randy St

Re: bind a key to multiple commands in copy mode

2011-04-29 Thread Randy Stauner
#x27;s the correct patch. > > --Dave > > > On Fri, Apr 29, 2011 at 1:40 PM, Randy Stauner < > ra...@magnificent-tears.com> wrote: > >> is this patch missing something? >> it looks awfully short and doesn't make sense to me... it just looks like >>

Re: bind a key to multiple commands in copy mode

2011-04-29 Thread Randy Stauner
e I like to have both bound to the > same key, if anyone's interested. > > --Dave > > > On Thu, Apr 28, 2011 at 6:49 PM, Randy Stauner < > ra...@magnificent-tears.com> wrote: > >> thanks for the idea. >> I definitely must applaud the effort. >> y

Re: if-shell 'tmux has-session' hangs

2011-04-29 Thread Randy Stauner
On Thu, Apr 28, 2011 at 09:43:12AM -0700, Randy Stauner wrote: > >I was trying to source a conf file to create default windows, > >but it seems that when doing > >if-shell "tmux has-session -t auto" "display-message yes" > >tmux seems to hang o

Re: bind a key to multiple commands in copy mode

2011-04-28 Thread Randy Stauner
an acceptable workaround. > > Of course now I remember that that sequence used to be repeatable (5Y to > copy 5 lines)... > that may be a bit trickier to recreate. > It might be easier to patch the source and add a copy-line command > instead... > i'll put that on my todo l

if-shell 'tmux has-session' hangs

2011-04-28 Thread Randy Stauner
I was trying to source a conf file to create default windows, but it seems that when doing if-shell "tmux has-session -t auto" "display-message yes" tmux seems to hang on the "has-session" call if the session does not exist. I can see these in a ps: rando27867 0.0 0.0 1832 496 ?

Re: bind a key to multiple commands in copy mode

2011-04-28 Thread Randy Stauner
trickier to recreate. It might be easier to patch the source and add a copy-line command instead... i'll put that on my todo list. :-) Thanks! On Fri, Apr 22, 2011 at 11:53 PM, Micah Cowan wrote: > On 04/22/2011 05:26 PM, Randy Stauner wrote: > > I first tried using send-k

Re: bind a key to multiple commands in copy mode

2011-04-22 Thread Randy Stauner
I first tried using send-keys (bind-key -t vi-copy send-keys ^ ' ' $ Enter) but send-keys isn't a valid command in copy-mode. On Fri, Apr 22, 2011 at 5:20 PM, Randy Stauner wrote: > I can bind a key in copy mode (bind-key -t vi-copy Y end-of-line), > but I haven't

bind a key to multiple commands in copy mode

2011-04-22 Thread Randy Stauner
I can bind a key in copy mode (bind-key -t vi-copy Y end-of-line), but I haven't yet found a way to bind a single key to multiple copy-mode commands... Specifically I am trying to recreate a key I used in screen a lot... in copy mode Y would just copy the whole current line... so for tmux I was t