version 1.139, 2015/05/27 13:28:04 |
version 1.140, 2015/06/04 23:27:51 |
|
|
void server_client_msg_identify(struct client *, struct imsg *); |
void server_client_msg_identify(struct client *, struct imsg *); |
void server_client_msg_shell(struct client *); |
void server_client_msg_shell(struct client *); |
|
|
|
/* Check if this client is inside this server. */ |
|
int |
|
server_client_check_nested(struct client *c) |
|
{ |
|
struct environ_entry *envent; |
|
struct window_pane *wp; |
|
|
|
if (c->tty.path == NULL) |
|
return (0); |
|
|
|
envent = environ_find(&c->environ, "TMUX"); |
|
if (envent == NULL || *envent->value == '\0') |
|
return (0); |
|
|
|
RB_FOREACH(wp, window_pane_tree, &all_window_panes) { |
|
if (strcmp(wp->tty, c->tty.path) == 0) |
|
return (1); |
|
} |
|
return (0); |
|
} |
|
|
/* Set client key table. */ |
/* Set client key table. */ |
void |
void |
server_client_key_table(struct client *c, const char *name) |
server_client_key_table(struct client *c, const char *name) |