mirror of
https://github.com/tmux/tmux.git
synced 2024-11-10 13:48:48 +00:00
Sync OpenBSD patchset 962:
Add a few more formats for panes (tty, pid, start cmd/cwd).
This commit is contained in:
parent
f0c3e9babe
commit
521bf41d12
6
format.c
6
format.c
@ -343,4 +343,10 @@ format_window_pane(struct format_tree *ft, struct window_pane *wp)
|
|||||||
format_add(ft, "pane_id", "%%%u", wp->id);
|
format_add(ft, "pane_id", "%%%u", wp->id);
|
||||||
format_add(ft, "pane_active", "%d", wp == wp->window->active);
|
format_add(ft, "pane_active", "%d", wp == wp->window->active);
|
||||||
format_add(ft, "pane_dead", "%d", wp->fd == -1);
|
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);
|
||||||
}
|
}
|
||||||
|
6
tmux.1
6
tmux.1
@ -14,7 +14,7 @@
|
|||||||
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
||||||
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
.\" 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
|
.Dt TMUX 1
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -2607,7 +2607,11 @@ The following variables are available, where appropriate:
|
|||||||
.It Li "pane_dead" Ta "1 if pane is dead"
|
.It Li "pane_dead" Ta "1 if pane is dead"
|
||||||
.It Li "pane_height" Ta "Height of pane"
|
.It Li "pane_height" Ta "Height of pane"
|
||||||
.It Li "pane_id" Ta "Unique pane id"
|
.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_title" Ta "Title of pane"
|
||||||
|
.It Li "pane_tty" Ta "Pseudo terminal of pane"
|
||||||
.It Li "pane_width" Ta "Width of pane"
|
.It Li "pane_width" Ta "Width of pane"
|
||||||
.It Li "session_attached" Ta "1 if session attached"
|
.It Li "session_attached" Ta "1 if session attached"
|
||||||
.It Li "session_created" Ta "Integer time session created"
|
.It Li "session_created" Ta "Integer time session created"
|
||||||
|
Loading…
Reference in New Issue
Block a user