summaryrefslogtreecommitdiffstats
path: root/server-fn.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-06-18 13:16:42 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-06-18 13:16:42 +0000
commit2942eca8953561cef0764c1775666697ee032c34 (patch)
tree7189077d728a911a5f6e8dac6cfe88824d9dc8a5 /server-fn.c
parent7c39850d1f55f101c42a2dd65664691927c459a1 (diff)
Add a skeleton mode to tmux (called "control mode") that let's tmux
commands be sent and output received on stdout. This can be used to integrate with other terminal emulators and should allow some other things to be made simpler later. More to come so doesn't do much yet and deliberately not documented.
Diffstat (limited to 'server-fn.c')
-rw-r--r--server-fn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server-fn.c b/server-fn.c
index 794205d7..1c55e16b 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -49,6 +49,8 @@ server_fill_environ(struct session *s, struct environ *env)
void
server_write_ready(struct client *c)
{
+ if (c->flags & CLIENT_CONTROL)
+ return;
server_write_client(c, MSG_READY, NULL, 0);
}