Add a wait-for command which blocks a client on a named channel until it is

wokrn up again (with wait-for -S). From Thiago Padilha.
This commit is contained in:
Nicholas Marriott
2013-03-06 09:57:26 +00:00
parent ec75f9d1a3
commit 7fd4d49d56
5 changed files with 142 additions and 0 deletions

3
tmux.h
View File

@ -1416,6 +1416,8 @@ struct cmd_q {
void *data;
struct msg_command_data *msgdata;
TAILQ_ENTRY(cmd_q) waitentry;
};
/* Command definition. */
@ -1835,6 +1837,7 @@ extern const struct cmd_entry cmd_switch_client_entry;
extern const struct cmd_entry cmd_unbind_key_entry;
extern const struct cmd_entry cmd_unlink_window_entry;
extern const struct cmd_entry cmd_up_pane_entry;
extern const struct cmd_entry cmd_wait_for_entry;
/* cmd-attach-session.c */
enum cmd_retval cmd_attach_session(struct cmd_q *, const char*, int, int);