From 9913cce3ba0f6c35970990ac2cbe9a83e3dc729d Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 7 Jul 2017 14:39:45 +0000 Subject: Add a pane_pipe format to show if pipe-pane is active, GitHub issue 990. --- format.c | 1 + 1 file changed, 1 insertion(+) (limited to 'format.c') diff --git a/format.c b/format.c index 60067e4c..115eba94 100644 --- a/format.c +++ b/format.c @@ -1393,6 +1393,7 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp) format_add(ft, "pane_id", "%%%u", wp->id); format_add(ft, "pane_active", "%d", wp == wp->window->active); format_add(ft, "pane_input_off", "%d", !!(wp->flags & PANE_INPUTOFF)); + format_add(ft, "pane_pipe", "%d", wp->pipe_fd != -1); status = wp->status; if (wp->fd == -1 && WIFEXITED(status)) -- cgit