Revision: 2608
          http://tmux.svn.sourceforge.net/tmux/?rev=2608&view=rev
Author:   tcunha
Date:     2011-10-02 11:34:04 +0000 (Sun, 02 Oct 2011)
Log Message:
-----------
Sync OpenBSD patchset 962:

Add a few more formats for panes (tty, pid, start cmd/cwd).

Modified Paths:
--------------
    trunk/format.c
    trunk/tmux.1

Modified: trunk/format.c
===================================================================
--- trunk/format.c      2011-10-02 11:33:14 UTC (rev 2607)
+++ trunk/format.c      2011-10-02 11:34:04 UTC (rev 2608)
@@ -343,4 +343,10 @@
        format_add(ft, "pane_id", "%%%u", wp->id);
        format_add(ft, "pane_active", "%d", wp == wp->window->active);
        format_add(ft, "pane_dead", "%d", wp->fd == -1);
+       if (wp->cmd != NULL)
+               format_add(ft, "pane_start_command", "%s", wp->cmd);
+       if (wp->cwd != NULL)
+               format_add(ft, "pane_start_path", "%s", wp->cwd);
+       format_add(ft, "pane_pid", "%ld", (long) wp->pid);
+       format_add(ft, "pane_tty", "%s", wp->tty);
 }

Modified: trunk/tmux.1
===================================================================
--- trunk/tmux.1        2011-10-02 11:33:14 UTC (rev 2607)
+++ trunk/tmux.1        2011-10-02 11:34:04 UTC (rev 2608)
@@ -14,7 +14,7 @@
 .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
 .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 .\"
-.Dd $Mdocdate: September 28 2011 $
+.Dd $Mdocdate: October 2 2011 $
 .Dt TMUX 1
 .Os
 .Sh NAME
@@ -2607,7 +2607,11 @@
 .It Li "pane_dead" Ta "1 if pane is dead"
 .It Li "pane_height" Ta "Height of pane"
 .It Li "pane_id" Ta "Unique pane id"
+.It Li "pane_pid" Ta "PID of first process in pane"
+.It Li "pane_start_command" Ta "Command pane started with"
+.It Li "pane_start_path" Ta "Path pane started with"
 .It Li "pane_title" Ta "Title of pane"
+.It Li "pane_tty" Ta "Pseudo terminal of pane"
 .It Li "pane_width" Ta "Width of pane"
 .It Li "session_attached" Ta "1 if session attached"
 .It Li "session_created" Ta "Integer time session created"

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to