version 1.32, 2015/12/11 12:27:36 |
version 1.33, 2015/12/13 14:32:38 |
|
|
"pipe-pane", "pipep", |
"pipe-pane", "pipep", |
"ot:", 0, 1, |
"ot:", 0, 1, |
"[-o] " CMD_TARGET_PANE_USAGE " [command]", |
"[-o] " CMD_TARGET_PANE_USAGE " [command]", |
0, |
CMD_PANE_T, |
cmd_pipe_pane_exec |
cmd_pipe_pane_exec |
}; |
}; |
|
|
|
|
cmd_pipe_pane_exec(struct cmd *self, struct cmd_q *cmdq) |
cmd_pipe_pane_exec(struct cmd *self, struct cmd_q *cmdq) |
{ |
{ |
struct args *args = self->args; |
struct args *args = self->args; |
struct client *c; |
struct client *c = cmdq->state.c; |
struct session *s; |
struct window_pane *wp = cmdq->state.tflag.wp; |
struct winlink *wl; |
struct session *s = cmdq->state.tflag.s; |
struct window_pane *wp; |
struct winlink *wl = cmdq->state.tflag.wl; |
char *cmd; |
char *cmd; |
int old_fd, pipe_fd[2], null_fd; |
int old_fd, pipe_fd[2], null_fd; |
struct format_tree *ft; |
struct format_tree *ft; |
|
|
if ((wl = cmd_find_pane(cmdq, args_get(args, 't'), &s, &wp)) == NULL) |
|
return (CMD_RETURN_ERROR); |
|
c = cmd_find_client(cmdq, NULL, 1); |
|
|
|
/* Destroy the old pipe. */ |
/* Destroy the old pipe. */ |
old_fd = wp->pipe_fd; |
old_fd = wp->pipe_fd; |