diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-10-12 00:35:08 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-10-12 00:35:08 +0000 |
commit | 6091b051fbf0a19ee9108b235b37265461727a41 (patch) | |
tree | 2d157d7642e44d890ea612e8c33ce9c2e7c5904d /tmux.h | |
parent | a053aeddf89094080bb6744795d2539f7063a05f (diff) | |
download | rtmux-6091b051fbf0a19ee9108b235b37265461727a41.tar.gz rtmux-6091b051fbf0a19ee9108b235b37265461727a41.tar.bz2 rtmux-6091b051fbf0a19ee9108b235b37265461727a41.zip |
Sync OpenBSD patchset 387:
Add a pipe-pane command to allow a pane to be piped to a shell command, for
example:
pipe-pane 'cat >~/out'
No arguments stops outputing and closes the pipe; the -o flag toggles a pipe
and on and off (useful for key bindings).
Suggested by espie@.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.468 2009-10-12 00:21:08 tcunha Exp $ */ +/* $Id: tmux.h,v 1.469 2009-10-12 00:35:08 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -713,6 +713,10 @@ struct window_pane { struct input_ctx ictx; + int pipe_fd; + struct buffer *pipe_buf; + size_t pipe_off; + struct screen *screen; struct screen base; @@ -1392,6 +1396,7 @@ extern const struct cmd_entry cmd_new_window_entry; extern const struct cmd_entry cmd_next_layout_entry; extern const struct cmd_entry cmd_next_window_entry; extern const struct cmd_entry cmd_paste_buffer_entry; +extern const struct cmd_entry cmd_pipe_pane_entry; extern const struct cmd_entry cmd_previous_layout_entry; extern const struct cmd_entry cmd_previous_window_entry; extern const struct cmd_entry cmd_refresh_client_entry; |