command-prompt just turns on the prompt and continues the command sequence so 
display-message will immediately cancel the prompt. It may work okay in tmux 
from git where command sequences are synchronous, or if it doesn't it could be 
changed to work.

-------- Original message --------
From: Chris Mason <ch...@noodles.org.uk> 
Date: 12/11/2013  23:41  (GMT+01:00) 
To: Nicholas Marriott <nicholas.marri...@gmail.com> 
Cc: tmux-users@lists.sourceforge.net 
Subject: Re: Custom Logging 
 

You can do it the same way as rename-window but I've forgotten the name of the 
command, maybe command-prompt. Check "tmux lsk" to see how it is bound.

You will need a separate key to turn it off though.

Thanks. For the benefit of anyone else, I came up with the following:

bind l command-prompt -p "Logfile:" -I 
"/home/chris/logs/tmux-#W.%Y%m%d.%H%M.log" "pipe-pane 'cat >>%%'"

bind L pipe-pane \; display-message "Logging Off"

I did try to use "display-message" after turning logging on, but it didn't show 
the prompt when I tried to do that?

Thanks,
Chris
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to